Function at 0x4037e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x6b0d44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 0x148], eax
movzx eax, word [eax]
push edi
push eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x13c], esi
call dword [sym.imp.WS2_32.dll_ntohs]
xor edi, edi
movzx ecx, ax
mov dword [ebp - 0x144], ecx
cmp dword [ebx + 0x9a4], edi
je 0x403855
movzx esi, cx
push esi
push str.ProcessCommand__u_..._n
call fcn.004010b4
push esi
push str.ProcessCommand__u_...
call fcn.004714ec
mov esi, dword [ebp - 0x13c]
add esp, 0x10
mov ecx, dword [ebp - 0x144]
cmp dword [ebx + 0xac8], 3
je 0x403e0d
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0xcc]
push dword [eax + 0x220]
call fcn.00565540
pop ecx
mov ecx, dword [ebp - 0x144]
movzx ecx, cx
mov dword [ebp - 0x158], eax
sub ecx, 1
je 0x403b4e
sub ecx, 1
je 0x4038e6
dec ecx
sub ecx, 1
jne 0x403df4
cmp dword [ebx + 0x9a4], edi
je 0x4038c0
push str.Authentication_Complete..._n
call fcn.004010b4
mov dword [esp], str.Authentication_Complete...
call fcn.004714ec
pop ecx
add dword [ebx + 0xac8], 2
cmp dword [ebx + 0xac8], 3
jne 0x403df4
mov ecx, dword [ebp - 0x14c]
mov edx, ebx
call fcn.004034de
jmp 0x403df4
cmp esi, 8
jle 0x403df4
cmp dword [ebx + 0x9a4], edi
je 0x403902
push str.Processing_Authentication_Verification...
call fcn.004714ec
pop ecx
push 0x10
pop eax
call fcn.0059bb50
mov ecx, dword [ebp - 0x148]
mov edx, esp
mov dword [ebp - 0x150], edx
lea eax, [ecx + 4]
mov dword [edx], eax
movzx eax, word [ecx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x150]
movzx ecx, ax
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x148]
add ecx, 4
mov word [edx + 4], ax
add ecx, dword [ebp - 0x144]
mov dword [edx + 6], ecx
mov ecx, dword [ebp - 0x13c]
sub ecx, eax
sub ecx, 4
mov word [edx + 0xa], cx
mov ecx, dword [ebp - 0x144]
lea eax, [ecx + 4]
cmp dword [ebp - 0x13c], eax
jle 0x403df4
push 0x30
pop esi
push ecx
push edx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x13c], esi
push eax
mov dword [ebp - 0x140], edi
call fcn.0048c470
add esp, 0xc
test eax, eax
jne 0x4039a4
push str.Invalid_server_certificate_r_n
call fcn.004010b4
jmp 0x403df3
lea eax, [ebp - 0x13c]
push eax
push 0x76c080
call fcn.0048df80
push eax
push dword [ebp - 0x140]
call fcn.0048f710
add esp, 0x10
mov edx, edi
mov ecx, 0x76c080
mov eax, dword [ecx + edx*4]
cmp eax, dword [ebx + edx*4 + 0x9e8]
jne 0x4039df
inc edx
cmp edx, 0xc
jne 0x4039cb
jmp 0x403a18
lea eax, [ebp - 0x13c]
push eax
push ecx
call fcn.0048df70
push eax
push dword [ebp - 0x140]
call fcn.0048f710
add esp, 0x10
mov ecx, edi
mov edx, 0x76c080
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 0x9e8]
jne 0x403b44
inc ecx
cmp ecx, 8
jne 0x403a02
lea eax, [ebp - 0xe8]
push eax
call fcn.0048aeb0
pop ecx
mov ecx, dword [ebp - 0x158]
mov edx, 0x76d080
call fcn.0046b0dd
push esi
lea eax, [ebp - 0xe8]
push 0x76d080
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebx + 0xa98]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebx + 0xa68]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x76c080
call fcn.0048aea0
push dword [ebp - 0x140]
call fcn.00491000
add esp, 0xc
mov dword [ebp - 0x148], eax
push eax
call fcn.0048cc00
mov edx, dword [ebp - 0x150]
pop ecx
push eax
mov dword [ebp - 0x144], eax
movzx ecx, word [edx + 0xa]
push ecx
push dword [edx + 6]
push esi
push 0x76c080
push 0x2a1
call fcn.0048d7f0
add esp, 0x18
cmp eax, 1
jne 0x403afe
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b2ef4
inc dword [ebx + 0xac8]
push esi
push 0x76d080
push 0x11
call fcn.00473d84
mov edx, dword [ebp - 0x14c]
add esp, 0xc
mov ecx, ebx
call fcn.004035e2
jmp 0x403b1c
push str.Invalid_server_signature_r_n
call fcn.004010b4
pop ecx
cmp dword [ebx + 0x9a4], edi
je 0x403b1c
push str.Invalid_Server_Signature
call fcn.004714ec
pop ecx
push dword [ebp - 0x144]
call fcn.0048fff0
pop ecx
push dword [ebp - 0x148]
call fcn.0048c920
pop ecx
push dword [ebp - 0x140]
call fcn.0048c3e0
jmp 0x403df3
push str.Server_certificate_mismatch_r_n
jmp 0x40399a
cmp esi, 0x62
jne 0x403df4
cmp dword [ebx + 0x9a4], edi
je 0x403b70
push str.Processing_Authentication_Request...
call fcn.004714ec
mov eax, dword [ebp - 0x158]
pop ecx
mov edx, 0x76d080
mov ecx, eax
call fcn.0046b0dd
mov esi, dword [ebp - 0x148]
mov edx, edi
mov ecx, 0x76d080
lea eax, [esi + 2]
mov dword [ebp - 0x150], eax
mov eax, dword [ecx + edx*4]
cmp eax, dword [esi + edx*4 + 2]
jne 0x403ba3
inc edx
cmp edx, 0xc
jne 0x403b92
jmp 0x403bca
mov edx, ecx
mov ecx, dword [ebp - 0x158]
call fcn.0046b143
mov ecx, edi
mov eax, 0x76d080
mov eax, dword [eax + ecx*4]
cmp eax, dword [esi + ecx*4 + 2]
jne 0x403dd6
inc ecx
cmp ecx, 0xc
jne 0x403bb2
push 0x30
lea eax, [esi + 0x32]
push eax
push 0x30
lea ecx, [ebx + 0xa68]
pop edx
call section..text
mov esi, dword [sym.imp.WS2_32.dll_htons]
pop ecx
pop ecx
push 2
call esi
mov word [0x76d080], ax
lea eax, [ebp - 0x154]
push eax
push dword [ebx + 0xa20]
mov dword [ebp - 0x154], 0x76d084
call fcn.0048c570
pop ecx
movzx eax, ax
pop ecx
push eax
mov dword [ebp - 0x144], eax
call esi
mov word [0x76d082], ax
cmp dword [ebx + 0xa24], edi
je 0x403d16
lea eax, [ebp - 0xe8]
push eax
call fcn.0048aeb0
pop ecx
push 0x30
pop esi
push esi
push dword [ebp - 0x150]
lea eax, [ebp - 0xe8]
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebx + 0xa68]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebx + 0xa98]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0048af60
add esp, 0xc
lea eax, [ebp - 0xe8]
mov edi, 0x76c080
push eax
push edi
call fcn.0048aea0
push dword [ebx + 0xa24]
call fcn.0048cc00
mov ecx, dword [ebp - 0x144]
add esp, 0xc
mov ebx, eax
movsx eax, cx
mov ecx, 0xfffc
mov dword [ebp - 0x150], eax
sub ecx, eax
push ebx
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [eax + 0x76d084]
push ecx
push esi
push edi
push 0x2a1
call fcn.0048d6d0
add esp, 0x18
cmp eax, 1
jne 0x403d0b
mov eax, dword [ebp - 0x140]
push ecx
push ecx
mov ecx, dword [ebp - 0x150]
add ecx, 4
add eax, ecx
mov ecx, dword [ebp - 0x14c]
push eax
push 0x76d080
push 2
pop edx
call fcn.00475194
add esp, 0x10
push ebx
call fcn.0048fff0
jmp 0x403df3
push 0x30
pop esi
push esi
push dword [ebp - 0x150]
mov edx, 0x1000
mov ecx, 0x76c080
call section..text
lea eax, [ebx + 0xa68]
mov edx, 0xfd0
push esi
push eax
mov ecx, 0x76c0b0
call section..text
lea eax, [ebx + 0xa98]
mov edx, 0xfa0
push esi
push eax
mov ecx, 0x76c0e0
call section..text
add esp, 0x18
mov dword [ebp - 0x13c], edi
lea eax, [ebp - 0x13c]
push eax
push ecx
mov ecx, dword [ebx + 0xa1c]
call fcn.0040c2f4
mov dword [ebp - 0x140], eax
test eax, eax
jle 0x403df4
mov ecx, dword [ebp - 0x144]
mov edx, 0xfffc
movsx esi, cx
push eax
push dword [ebp - 0x13c]
sub edx, esi
lea ecx, [esi + 0x76d084]
call section..text
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x14c]
add eax, 4
add eax, esi
push eax
push 0x76d080
push 2
pop edx
call fcn.00475194
push 1
push dword [ebp - 0x13c]
call fcn.005cdee0
add esp, 0x18
jmp 0x403df4
push str.Bad_server_certificate_hash_r_n
call fcn.004010b4
pop ecx
cmp dword [ebx + 0x9a4], edi
je 0x403df4
push str.Bad_server_certificate_hash
call fcn.004714ec
pop ecx
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x404727
push eax
call fcn.0048c3e0
jmp 0x40409e
push 0xa
pop eax
cmp cx, ax
jb 0x404727
mov eax, dword [ebp - 0x148]
cmp byte [eax], 0x7b
je 0x404603
mov edx, 0x3e8
cmp cx, dx
jae 0x404603
push 4
pop ecx
cmp esi, ecx
jl 0x404727
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x140], eax
cmp dword [ebx + 0x9a4], edi
je 0x403e8f
mov ecx, dword [ebp - 0x144]
movzx esi, ax
movzx edi, cx
push esi
push edi
push str.BinaryCommand__u___u_..._n
call fcn.004010b4
add esp, 0xc
push esi
push edi
push str.BinaryCommand__u___u_...
call fcn.004714ec
mov esi, dword [ebp - 0x13c]
add esp, 0xc
xor edi, edi
mov eax, dword [ebp - 0x144]
movzx eax, ax
sub eax, 0xa
je 0x404436
sub eax, 1
je 0x40439c
sub eax, 1
je 0x404312
sub eax, 1
je 0x40411d
sub eax, 1
je 0x4040a4
dec eax
sub eax, 1
jne 0x404727
push str.Server_verified_meshcore...
call fcn.004010b4
pop ecx
cmp dword [ebx + 0x9a8], edi
je 0x404094
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x64]
call fcn.004123b9
mov ecx, dword [ebx + 8]
or edx, 0xffffffff
push 0x6b3070
call fcn.0040ebba
pop ecx
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
push 0xfffffffffffffffe
pop edx
call fcn.0040f945
mov edx, dword [ebx + 0x9a8]
pop ecx
mov ecx, dword [ebx + 8]
call fcn.004122ad
mov ecx, dword [ebx + 8]
xor esi, esi
inc esi
push edi
mov edx, esi
call fcn.0040d9fa
pop ecx
mov ecx, dword [ebx + 8]
call fcn.0041259d
push 0x400
push 0x6b3080
mov dword [ebx + 0x9a8], edi
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b308c
push edi
push edi
push eax
call fcn.00473f3c
add esp, 0x14
mov dword [ebp - 0x140], eax
test eax, eax
jg 0x403f71
push str._meshcore_not_found..._n
jmp 0x404099
push str._Launching_meshcore..._n
call fcn.004010b4
mov eax, dword [ebx + 0x9b0]
pop ecx
test eax, eax
je 0x40401a
push eax
push str.attachDebugger__webport:__d__wait:_1__.then_function__prt___console.log_Point_Browser_for_Debug_to_port:___prt______n
lea eax, [ebp - 0x108]
push 0xff
push eax
call fcn.0040112a
mov edi, dword [ebp - 0x140]
mov esi, eax
xor eax, eax
add edi, esi
push eax
push eax
xor edx, edx
mov ecx, edi
call fcn.0046c097
push 0x400
push 0x6b3144
mov dword [ebp - 0x13c], eax
call fcn.005d06e0
mov ecx, dword [ebp - 0x13c]
mov edx, 0x6b3150
add ecx, 0xfffffffc
add ecx, esi
push edi
push ecx
mov ecx, dword [ebx + 0x24]
push eax
call fcn.00473f3c
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 0x13c]
add esp, 0x2c
lea edx, [edx - 4]
push esi
push eax
lea ecx, [ecx + 4]
call section..text
pop ecx
xor esi, esi
lea eax, [edi - 4]
mov edi, dword [ebp - 0x13c]
inc esi
pop ecx
jmp 0x404059
mov ecx, dword [ebp - 0x140]
xor edx, edx
push edi
push edi
call fcn.0046c097
push 0x400
push 0x6b315c
mov edi, eax
call fcn.005d06e0
mov ecx, dword [ebp - 0x140]
mov edx, 0x6b3168
push ecx
mov ecx, dword [ebx + 0x24]
push edi
push eax
call fcn.00473f3c
mov eax, dword [ebp - 0x140]
add esp, 0x1c
mov ecx, dword [ebx + 8]
lea edx, [edi + 4]
push 0xd
add eax, 0xfffffffc
push 0x6b3174
push eax
call fcn.00461ded
add esp, 0xc
test eax, eax
jne 0x404082
mov ecx, dword [ebx + 8]
call fcn.00461e76
test eax, eax
je 0x40408a
mov ecx, dword [ebx + 8]
call fcn.0041259d
push esi
push edi
call fcn.005cdee0
pop ecx
jmp 0x40409e
push str._meshcore_already_running..._n
call fcn.004010b4
pop ecx
jmp 0x404727
mov ecx, dword [ebx + 0x1c]
mov edx, 0x6b336c
call fcn.00402962
mov ebx, eax
push 0x760414
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], edi
push ebx
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [ebp - 0x144], 0
je 0x404106
push dword [ebp - 0x144]
lea eax, [esi - 4]
push 1
push eax
mov eax, dword [ebp - 0x148]
add eax, 4
push eax
call fcn.005ca2c0
push dword [ebp - 0x144]
mov esi, eax
call fcn.005ac520
add esp, 0x14
test esi, esi
jne 0x404116
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x13c]
jmp 0x4040b3
push 0xe
jmp 0x404577
mov ecx, dword [ebx + 0x1c]
mov edx, 0x6b31c4
call fcn.00402962
push 4
pop ecx
mov dword [ebp - 0x13c], eax
cmp esi, ecx
jne 0x40414d
cmp dword [ebx + 0x99c], edi
je 0x4042ff
mov ecx, str.SelfUpdate____Starting_download...
jmp 0x4042ec
cmp esi, 0x34
jne 0x404727
lea edx, [ebp - 0x138]
mov ecx, eax
call fcn.00403135
test eax, eax
jne 0x4042df
mov ecx, dword [ebp - 0x148]
lea esi, [ebp - 0x138]
mov edx, edi
mov eax, dword [esi + edx*4]
cmp eax, dword [ecx + edx*4 + 4]
jne 0x4042df
inc edx
cmp edx, 0xc
jne 0x404179
cmp dword [ebx + 0x99c], edi
je 0x4041a6
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Download_Complete..._Hash_verified
call fcn.0047145c
add esp, 0xc
cmp dword [ebx + 0x9a0], edi
je 0x4041f1
mov edx, dword [ebx + 0x1c]
lea ecx, [ebp - 0x154]
call fcn.00470ccc
mov edx, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x13c]
push eax
call fcn.00470d98
pop ecx
cmp dword [ebx + 0x99c], edi
je 0x4041e9
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Overriding_update_with_same_version...
call fcn.0047145c
add esp, 0xc
cmp dword [ebx + 0x9a0], edi
jne 0x4041f9
cmp dword [ebx + 0x998], edi
je 0x40424a
push 0x4000
push 0x6b3260
call fcn.005d06e0
push 0x400
push 0x6b3268
mov esi, eax
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b3278
push esi
push 0x6b3264
push eax
call fcn.00473d84
add esp, 0x1c
cmp dword [ebx + 0x99c], edi
je 0x40424a
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Disabling_future_updates...
call fcn.0047145c
add esp, 0xc
push 0xf88
push ecx
mov ecx, dword [ebx + 8]
mov edx, str.require_service_manager_.manager.getService_meshagentDiagnostic_.start___
mov dword [ebx + 0x990], 1
call fcn.0040e466
pop ecx
pop ecx
test eax, eax
jne 0x40427c
cmp dword [ebx + 0x99c], edi
je 0x4042cd
mov ecx, str.SelfUpdate____Starting_Secondary_Agent__to_assist_with_self_update
jmp 0x404289
cmp dword [ebx + 0x99c], edi
je 0x4042cd
mov ecx, str.SelfUpdate____Secondary_Agent_unavailable_to_assist_with_self_update
push edi
push edi
push edi
xor edx, edx
call fcn.0047145c
add esp, 0xc
cmp dword [ebx + 0x99c], edi
je 0x4042cd
push dword [ebx + 0x990]
lea eax, [ebp - 0x108]
push str.SelfUpdate____Stopping_Chain___d_
push 0xff
push eax
call fcn.0040112a
push edi
push edi
push edi
xor edx, edx
lea ecx, [ebp - 0x108]
call fcn.0047145c
add esp, 0x1c
mov ecx, dword [ebx]
mov dword [ecx], 2
call fcn.0046c589
jmp 0x404727
cmp dword [ebx + 0x99c], edi
je 0x4042f9
mov ecx, str.SelfUpdate____Download_Complete..._Hash_FAILED__aborting_update...
push edi
push edi
xor edx, edx
push edi
call fcn.0047145c
add esp, 0xc
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x404727
push eax
call fcn.005e49e0
jmp 0x40409e
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xc
call esi
push dword [ebp - 0x140]
mov word [0x76d080], ax
call esi
mov word [0x76d082], ax
push 0x30
cmp dword [ebx + 0x994], edi
je 0x404347
push edi
push 0x76d084
call fcn.0059de40
jmp 0x404378
cmp dword [ebx + 0x998], edi
je 0x40437d
push 0xffff
push 0x76d084
call fcn.0059de40
add esp, 0xc
cmp dword [ebx + 0x99c], edi
je 0x404393
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Forcing_Update...
call fcn.0047145c
add esp, 0xc
jmp 0x404393
lea eax, [ebx + 0x9b8]
mov ecx, 0x76d084
push eax
push 0x30
pop edx
call section..text
pop ecx
pop ecx
push ecx
push ecx
push 0x34
jmp 0x404599
push 0x400
push 0x6b303c
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b3048
push eax
call fcn.0047405f
add esp, 0xc
mov dword [ebp - 0x154], eax
cmp dword [ebx + 0x3c], edi
push 0x34
pop eax
push 4
pop ecx
push 0x34
cmove eax, ecx
push edi
push 0x76d080
mov dword [ebp - 0x150], eax
call fcn.0059de40
mov esi, dword [sym.imp.WS2_32.dll_htons]
add esp, 0xc
push 0xb
call esi
push dword [ebp - 0x140]
mov word [0x76d080], ax
call esi
mov word [0x76d082], ax
cmp dword [ebx + 0x3c], edi
jne 0x404428
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x404428
push 0x30
push eax
push 0x30
pop edx
mov ecx, 0x76d084
call section..text
pop ecx
pop ecx
push 0x34
pop eax
jmp 0x40442e
mov eax, dword [ebp - 0x150]
push ecx
push ecx
push eax
jmp 0x404599
cmp dword [ebx + 0x3c], edi
jne 0x404727
cmp esi, 0x34
jbe 0x4045b4
push 0x400
push 0x6b2fd0
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b2fdc
push eax
call fcn.0047405f
add esp, 0xc
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x404494
mov ecx, dword [ebp - 0x148]
mov edx, edi
mov eax, dword [eax + edx*4]
cmp eax, dword [ecx + edx*4 + 4]
jne 0x404494
mov eax, dword [ebp - 0x13c]
inc edx
cmp edx, 0xc
jne 0x40447a
jmp 0x404514
mov ecx, dword [ebx + 0x24]
lea eax, [esi - 0x34]
push eax
mov eax, dword [ebp - 0x148]
mov edx, 0x6b2fe8
add eax, 0x34
mov dword [ebx + 0x9a8], edi
push eax
push 0xa
call fcn.00473d84
add esp, 0xc
push 0x400
push 0x6b2ff4
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b3000
push eax
call fcn.0047405f
mov ecx, dword [ebp - 0x148]
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov eax, dword [eax + edi*4]
cmp eax, dword [ecx + edi*4 + 4]
jne 0x40454e
mov eax, dword [ebp - 0x13c]
inc edi
cmp edi, 0xc
jne 0x4044e6
lea eax, [esi - 0x38]
push eax
lea eax, [ecx + 0x38]
mov ecx, ebx
push eax
call fcn.004030c5
pop ecx
pop ecx
mov ecx, dword [ebx + 0x24]
call fcn.004742a6
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xb
call esi
push dword [ebp - 0x140]
mov word [0x76d080], ax
call esi
push 0x30
push dword [ebp - 0x13c]
mov edx, 0xfffc
mov word [0x76d082], ax
mov ecx, 0x76d084
call section..text
jmp 0x404395
push 0x400
push 0x6b300c
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b3018
push eax
call fcn.00474086
add esp, 0xc
mov ecx, ebx
call fcn.00403005
push 0xb
mov esi, dword [sym.imp.WS2_32.dll_htons]
call esi
push dword [ebp - 0x140]
mov word [0x76d080], ax
call esi
push ecx
push ecx
push 4
pop ecx
push ecx
mov word [0x76d082], ax
mov ecx, dword [ebp - 0x14c]
push 0x76d080
push 2
pop edx
call fcn.00475194
add esp, 0x10
jmp 0x404727
push 4
pop edi
cmp esi, edi
jne 0x404727
push 0x400
push 0x6b3024
call fcn.005d06e0
mov ecx, dword [ebx + 0x24]
mov edx, 0x6b3030
push eax
call fcn.00474086
add esp, 0xc
mov ecx, ebx
call fcn.00403005
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xb
call esi
push dword [ebp - 0x140]
mov word [0x76d080], ax
call esi
push ecx
push ecx
push edi
jmp 0x404593
push dword [ebx]
push dword [ebx + 8]
call fcn.004023af
mov ecx, dword [ebx + 8]
or edx, 0xffffffff
push 0x6b2f78
call fcn.0040ebba
mov ecx, dword [ebx + 8]
add esp, 0xc
push 0xffffffffffffffff
push 0xfffffffffffffffe
pop edx
call fcn.0040f945
pop ecx
mov ecx, dword [ebx + 8]
mov edx, str.Command
call fcn.004117ba
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebx + 8]
cmp byte [eax], 0x7b
jne 0x4046c6
mov edx, dword [ecx + 0x64]
call fcn.004123b9
mov ecx, dword [ebx + 8]
or edx, 0xffffffff
push 0x6b2f88
call fcn.0040ebba
mov ecx, dword [ebx + 8]
or edx, 0xffffffff
mov dword [esp], 0x6b2f90
call fcn.0040ebba
pop ecx
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
push 0xfffffffffffffffd
pop edx
call fcn.0040f945
pop ecx
mov ecx, dword [ebx + 8]
call fcn.004126a8
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebx + 8]
push esi
call fcn.00411751
pop ecx
mov ecx, dword [ebx + 8]
xor edx, edx
inc edx
call fcn.0040d9b0
test eax, eax
je 0x4046c1
mov ecx, dword [ebx + 8]
call fcn.0041259d
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebx + 8]
push esi
call fcn.00411751
pop ecx
xor esi, esi
inc esi
jmp 0x404704
push 3
xor edx, edx
call fcn.00412160
pop ecx
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffc
pop edx
call fcn.0040fa56
mov ecx, dword [ebx + 8]
push esi
push dword [ebp - 0x148]
push 0xfffffffffffffffc
pop edx
call fcn.0040d844
pop ecx
pop ecx
push 1
push esi
push ecx
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffc
pop edx
call fcn.00411f69
add esp, 0xc
push 2
pop esi
mov ecx, dword [ebx + 8]
push edi
push 2
pop edx
call fcn.0040d9fa
pop ecx
test eax, eax
je 0x40471d
mov ecx, dword [ebx + 8]
call fcn.0044a550
mov ecx, dword [ebx + 8]
mov edx, esi
call fcn.0041249b
lea esp, [ebp - 0x168]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret