Function at 0x421a40
Capabilities:
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c1c2
mov eax, dword fs:[0]
push eax
sub esp, 0xd4c
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd24], ecx
xor eax, eax
mov dword [ebp - 0xd14], eax
mov dword [ebp - 0xd18], eax
push 0x74
push eax
lea eax, [ebp - 0xb6c]
mov dword [ebp - 4], 2
push eax
call fcn.00443760
add esp, 0xc
lea ecx, [ebp - 0xb6c]
call fcn.00424760
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xa7c], xmm0
mov dword [ebp - 0xa70], 0
movq qword [ebp - 0xa6c], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0xa6c], 0
mov dword [ebp - 0xa68], 0
and eax, 0xfffffe00
mov dword [ebp - 0xa74], eax
push 0
mov byte [ebp - 4], 5
call fcn.0043f9e8
add esp, 4
lea eax, [ebp - 0xcfc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42336c
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0xae4], 1
mov eax, 2
mov dword [ebp - 0xd1c], esi
push 0
mov word [ebp - 0xaf4], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0xaf0], eax
call dword [sym.imp.WS2_32.dll_htons]
push 4
mov word [ebp - 0xaf2], ax
lea eax, [ebp - 0xae4]
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0xaf4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
push 0x3ff
lea eax, [ebp - 0x91b]
mov byte [ebp - 0x91c], 0
push 0
push eax
call fcn.00443760
add esp, 0xc
mov dword [ebp - 0xac8], 0x10
lea eax, [ebp - 0x51b]
mov byte [ebp - 0x51c], 0
push 0x3ff
push 0
push eax
call fcn.00443760
add esp, 4
lea eax, [ebp - 0xa4c]
push eax
call fcn.00421820
test al, al
je 0x42336c
mov eax, dword [0x476c44]
test al, 1
jne 0x421c17
or eax, 1
mov dword [0x476c44], eax
push 0xfc8
push 0
push 0x476c48
mov byte [ebp - 4], 6
call fcn.00443760
add esp, 0xc
call fcn.0040a020
push 0x45db30
call fcn.0043e1e7
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [0x476c58]
mov ecx, 0x476c58
push 6
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x421e0d
mov eax, dword [0x476c44]
test al, 1
jne 0x421c71
or eax, 1
mov dword [0x476c44], eax
push 0xfc8
push 0
push 0x476c48
mov byte [ebp - 4], 7
call fcn.00443760
add esp, 0xc
call fcn.0040a020
push 0x45db30
call fcn.0043e1e7
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [0x476c58]
mov ecx, 0x476c58
push 6
push 0
mov eax, dword [eax + 0x6c]
call eax
mov ecx, 0x2000
mov dword [ebp - 0xd20], eax
xorps xmm0, xmm0
mov dword [ebp - 0xa80], 0
mov edi, 0xa
movq qword [ebp - 0xa88], xmm0
sub ecx, dword [eax + 0x20]
lea esi, [eax + 0x24]
add esi, dword [eax + 0x20]
add ecx, esi
mov dword [ebp - 0xa88], esi
mov eax, ecx
mov dword [ebp - 0xd18], ecx
sub eax, esi
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa80], esi
cmp eax, edi
jae 0x421cda
mov edi, eax
test eax, eax
je 0x421cf7
push edi
push 0x468e5c
push esi
call fcn.00441040
mov ecx, dword [ebp - 0xd18]
add esp, 0xc
add esi, edi
mov dword [ebp - 0xa80], esi
lea edi, [ebp - 0xa4c]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x421d00
sub edi, edx
mov eax, ecx
sub eax, esi
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x421d35
push edi
lea eax, [ebp - 0xa4c]
push eax
push esi
call fcn.00441040
mov ecx, dword [ebp - 0xd18]
add esp, 0xc
add esi, edi
mov dword [ebp - 0xa80], esi
mov eax, ecx
mov edi, 5
sub eax, esi
cmp eax, edi
jae 0x421d48
mov edi, eax
test eax, eax
je 0x421d65
push edi
push str._Port
push esi
call fcn.00441040
mov ecx, dword [ebp - 0xd18]
add esp, 0xc
add esi, edi
mov dword [ebp - 0xa80], esi
mov eax, dword [ebp + 8]
cdq
test edx, edx
jg 0x421d8b
jl 0x421d73
test eax, eax
jae 0x421d8b
neg eax
adc edx, 0
sub ecx, esi
neg edx
cmp ecx, 1
jle 0x421d8b
mov byte [esi], 0x2d
inc esi
mov dword [ebp - 0xa80], esi
push ecx
push 0
push edx
push eax
lea ecx, [ebp - 0xa88]
call fcn.004086a0
mov esi, dword [ebp - 0xd20]
mov eax, dword [ebp - 0xa80]
sub eax, dword [ebp - 0xa88]
add dword [esi + 0x20], eax
mov eax, dword [0x476c44]
test al, 1
jne 0x421def
or eax, 1
mov dword [0x476c44], eax
push 0xfc8
push 0
push 0x476c48
mov byte [ebp - 4], 8
call fcn.00443760
add esp, 0xc
call fcn.0040a020
push 0x45db30
call fcn.0043e1e7
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [0x476c58]
mov ecx, 0x476c58
push 0x9e
push str.UDP_Radio_Server.cpp
push esi
call dword [eax + 0x20]
mov esi, dword [ebp - 0xd1c]
mov edi, dword [sym.imp.WS2_32.dll_recvfrom]
push 0x400
lea eax, [ebp - 0x91c]
push 0
push eax
call fcn.00443760
add esp, 0xc
lea eax, [ebp - 0xac8]
push eax
lea eax, [ebp - 0xd0c]
push eax
push 0
push 0x400
lea eax, [ebp - 0x91c]
push eax
push esi
call edi
cmp eax, 0xffffffff
je 0x42335f
push dword [ebp - 0xd08]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp byte [ebp - 0x91c], 0
mov dword [ebp - 0xa98], 0xf
mov dword [ebp - 0xa9c], 0
mov byte [ebp - 0xaac], 0
jne 0x421e85
xor ecx, ecx
jmp 0x421e99
lea ecx, [ebp - 0x91c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421e90
sub ecx, edx
push ecx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0xaac]
call fcn.004037a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xaac]
cmp dword [ebp - 0xa98], 0x10
lea eax, [ebp - 0xaac]
lea edx, [ebp - 0xb44]
cmovae ecx, dword [ebp - 0xaac]
add ecx, dword [ebp - 0xa9c]
cmp dword [ebp - 0xa98], 0x10
push ecx
cmovae eax, dword [ebp - 0xaac]
lea ecx, [ebp - 0xb44]
cmp dword [ebp - 0xb30], 0x10
mov dword [ebp - 0xd20], eax
cmovae edx, dword [ebp - 0xb44]
mov eax, dword [ebp - 0xb34]
push dword [ebp - 0xd20]
add eax, edx
cmp dword [ebp - 0xb30], 0x10
lea edx, [ebp - 0xb44]
cmovae edx, dword [ebp - 0xb44]
push eax
push edx
call fcn.004279d0
cmp dword [ebp - 0xb30], 0x10
lea ecx, [ebp - 0xb44]
mov eax, dword [ebp - 0xb34]
lea edx, [ebp - 0xa7c]
cmovae ecx, dword [ebp - 0xb44]
push ecx
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0xb6c]
call fcn.00424910
mov byte [ebp - 4], 5
cmp dword [ebp - 0xa98], 0x10
mov byte [ebp - 0xd0d], al
jb 0x421f80
push dword [ebp - 0xaac]
call fcn.0043e223
mov al, byte [ebp - 0xd0d]
add esp, 4
test al, al
je 0x423353
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x421ff6
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0xa
mov edx, str.endfiledown
mov ecx, dword [ebp - 0xd14]
or ecx, 1
mov dword [ebp - 0xd14], ecx
mov dword [ebp - 0xd18], ecx
mov ecx, eax
call fcn.004080b0
mov byte [ebp - 0xd0d], 1
test al, al
jne 0x421ffd
mov byte [ebp - 0xd0d], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd14]
test al, 1
je 0x42202e
and eax, 0xfffffffe
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x42202e
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x42208c
lea eax, [ebp - 0x51c]
push str._cmd_:_endfiledown___code_:_ok_
push eax
call fcn.0043eae5
lea ecx, [ebp - 0x51c]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422054
mov esi, dword [ebp - 0xd1c]
lea eax, [ebp - 0xd0c]
push 0x10
push eax
push 0
sub ecx, edx
lea eax, [ebp - 0x51c]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x422098
call edi
jmp 0x422098
mov esi, dword [ebp - 0xd1c]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422121
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0xb
mov edx, str.getip
mov ecx, dword [ebp - 0xd14]
or ecx, 2
mov dword [ebp - 0xd14], ecx
mov dword [ebp - 0xd18], ecx
mov ecx, eax
call fcn.004080b0
test al, al
je 0x422121
push 0x468d1f
push 0x468d1c
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
mov byte [ebp - 0xd0d], 1
cmp byte [eax + 8], 0
jne 0x422128
mov byte [ebp - 0xd0d], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd14]
test al, 2
je 0x422159
and eax, 0xfffffffd
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x422159
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x42253a
lea ecx, [ebp - 0xa4c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422170
sub ecx, edx
je 0x422269
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422269
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x422269
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov ecx, eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0xd14]
or eax, 4
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0xd14], eax
mov dword [ebp - 0xd18], eax
jb 0x422203
mov ecx, dword [ecx]
push str.update
push ecx
call fcn.0044e15a
add esp, 8
test eax, eax
jne 0x422269
push 0x468d1f
push 0x468d1c
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xac4]
push ecx
mov ecx, eax
call fcn.0042b8b0
or dword [ebp - 0xd14], 8
mov ecx, eax
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x422254
mov ecx, dword [ecx]
push eax
push ecx
call fcn.0044e15a
add esp, 8
mov byte [ebp - 0xd0d], 1
test eax, eax
je 0x422270
mov byte [ebp - 0xd0d], 0
mov eax, dword [ebp - 0xd14]
test al, 8
je 0x4222bb
and eax, 0xfffffff7
cmp dword [ebp - 0xab0], 0x10
mov dword [ebp - 0xd14], eax
jb 0x4222a0
push dword [ebp - 0xac4]
call fcn.0043e223
mov eax, dword [ebp - 0xd14]
add esp, 4
mov dword [ebp - 0xab0], 0xf
mov dword [ebp - 0xab4], 0
mov byte [ebp - 0xac4], 0
mov dword [ebp - 4], 5
test al, 4
je 0x4222e6
and eax, 0xfffffffb
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x4222e6
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x42234a
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x51c]
push str._cmd_:_getip___ip_:__s___vertype_:_update___ver_:__s_
push eax
call fcn.0043eae5
lea ecx, [ebp - 0x51c]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422320
push 0x10
lea eax, [ebp - 0xd0c]
sub ecx, edx
push eax
push 0
push ecx
lea eax, [ebp - 0x51c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42234a
call edi
lea ecx, [ebp - 0xa4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422353
sub ecx, edx
je 0x42244c
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x42244c
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x42244c
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov ecx, eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xd14]
or eax, 0x10
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0xd14], eax
mov dword [ebp - 0xd18], eax
jb 0x4223e6
mov ecx, dword [ecx]
push str.business
push ecx
call fcn.0044e15a
add esp, 8
test eax, eax
jne 0x42244c
push 0x468d1f
push 0x468d1c
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xac4]
push ecx
mov ecx, eax
call fcn.0042b8b0
or dword [ebp - 0xd14], 0x20
mov ecx, eax
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x422437
mov ecx, dword [ecx]
push eax
push ecx
call fcn.0044e15a
add esp, 8
mov byte [ebp - 0xd0d], 1
test eax, eax
je 0x422453
mov byte [ebp - 0xd0d], 0
mov eax, dword [ebp - 0xd14]
test al, 0x20
je 0x42249e
and eax, 0xffffffdf
cmp dword [ebp - 0xab0], 0x10
mov dword [ebp - 0xd14], eax
jb 0x422483
push dword [ebp - 0xac4]
call fcn.0043e223
mov eax, dword [ebp - 0xd14]
add esp, 4
mov dword [ebp - 0xab0], 0xf
mov dword [ebp - 0xab4], 0
mov byte [ebp - 0xac4], 0
mov dword [ebp - 4], 5
test al, 0x10
je 0x4224c9
and eax, 0xffffffef
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x4224c9
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x42253a
cmp dword [ebp + 0x50], 0x10
lea ecx, [ebp + 0x3c]
lea eax, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 0x10
push ecx
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x51c]
push str._cmd_:_getip___ip_:__s___ver_:__s___vermd5_:__s_
push eax
call fcn.0043eae5
lea ecx, [ebp - 0x51c]
add esp, 0x14
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422510
push 0x10
lea eax, [ebp - 0xd0c]
sub ecx, edx
push eax
push 0
push ecx
lea eax, [ebp - 0x51c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42253a
call edi
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x4225a8
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0xe
mov edx, str.getfiles
mov ecx, dword [ebp - 0xd14]
or ecx, 0x40
mov dword [ebp - 0xd14], ecx
mov dword [ebp - 0xd18], ecx
mov ecx, eax
call fcn.004080b0
mov byte [ebp - 0xd0d], 1
test al, al
jne 0x4225af
mov byte [ebp - 0xd0d], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd14]
test al, 0x40
je 0x4225e0
and eax, 0xffffffbf
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x4225e0
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x4228a1
push 0x465da0
lea ecx, [ebp - 0xa94]
call fcn.00402b30
mov byte [ebp - 4], 0xf
cmp dword [ebp + 0x4c], 0
jbe 0x4226a4
push 0x468f32
push str.vermd5
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
or dword [ebp - 0xd14], 0x80
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x422642
mov ecx, dword [ecx]
cmp dword [ebp + 0x50], 0x10
lea edx, [ebp + 0x3c]
cmovae edx, dword [ebp + 0x3c]
lea ecx, [ecx]
mov al, byte [edx]
cmp al, byte [ecx]
mov byte [ebp - 0xd0d], al
mov eax, dword [ebp - 0xd14]
jne 0x422692
cmp byte [ebp - 0xd0d], 0
je 0x42268e
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
mov byte [ebp - 0xd0d], al
mov eax, dword [ebp - 0xd14]
jne 0x422692
add edx, 2
add ecx, 2
cmp byte [ebp - 0xd0d], 0
jne 0x422650
xor ecx, ecx
jmp 0x422697
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4226aa
mov byte [ebp - 0xd0d], 1
jmp 0x4226b1
mov eax, dword [ebp - 0xd14]
mov byte [ebp - 0xd0d], 0
test al, al
jns 0x4226d7
and eax, 0xffffff7f
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x4226d7
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x422717
push str._fileName_:_
lea ecx, [ebp - 0xa94]
call fcn.00402c30
cmp dword [ebp + 0x50], 0x10
lea eax, [ebp + 0x3c]
lea ecx, [ebp - 0xa94]
cmovae eax, dword [ebp + 0x3c]
push eax
call fcn.00402c30
push 0x4689e8
lea ecx, [ebp - 0xa94]
call fcn.00402c30
mov eax, dword [ebp - 0xd24]
xor edi, edi
mov dword [ebp - 0xd18], edi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4227ee
xor esi, esi
cmp dword [ebp - 0xa84], 0
jbe 0x422760
push 1
push 0x4689e4
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
push 0xd
push str._fileName_:_
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
mov ecx, dword [ebp - 0xd24]
mov edx, dword [ecx]
add edx, esi
cmp dword [edx + 0x14], 0x10
jb 0x422784
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x42278d
xor ecx, ecx
jmp 0x4227a1
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422792
sub ecx, edi
mov edi, dword [ebp - 0xd18]
push ecx
push edx
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
push 2
push 0x4689e8
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
mov eax, dword [ebp - 0xd24]
inc edi
add esi, 0x18
mov dword [ebp - 0xd18], edi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x422745
cmp dword [ebp + 0x50], 0x10
lea edx, [ebp + 0x3c]
mov edi, dword [ebp - 0xd24]
lea esi, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
lea ecx, [edi + 0x24]
cmp dword [ebp + 0x38], 0x10
cmovae esi, dword [ebp + 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x422815
mov ecx, dword [ecx]
cmp dword [ebp - 0xa80], 0x10
lea eax, [ebp - 0xa94]
push edx
cmovae eax, dword [ebp - 0xa94]
push esi
push ecx
push eax
lea eax, [ebp - 0x51c]
push str._fileNames_:__s___postjson_:_s__ver_:__s___vermd5_:__s_
push eax
call fcn.0043eae5
lea ecx, [ebp - 0x51c]
add esp, 0x18
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422850
mov esi, dword [ebp - 0xd1c]
lea eax, [ebp - 0xd0c]
push 0x10
push eax
push 0
sub ecx, edx
lea eax, [ebp - 0x51c]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x422884
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [ebp - 4], 5
cmp dword [ebp - 0xa80], 0x10
jb 0x4228a7
push dword [ebp - 0xa94]
call fcn.0043e223
add esp, 4
jmp 0x4228a7
mov edi, dword [ebp - 0xd24]
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422918
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0x10
mov edx, str.fileNamedown
mov ecx, dword [ebp - 0xd14]
or ecx, 0x100
mov dword [ebp - 0xd14], ecx
mov dword [ebp - 0xd18], ecx
mov ecx, eax
call fcn.004080b0
mov byte [ebp - 0xd0d], 1
test al, al
jne 0x42291f
mov byte [ebp - 0xd0d], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd14]
test eax, 0x100
je 0x422955
and eax, 0xfffffeff
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x422955
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x423359
push 0x468f94
push str.prot
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422a00
push 0x468f94
push str.prot
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
mov ecx, eax
call fcn.0042ba20
test eax, eax
jle 0x422a00
push 0x468f9e
push str.recvip
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422a00
push 0x468f9e
push str.recvip
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov ecx, dword [ebp - 0xd14]
or ecx, 0x200
mov dword [ebp - 0xd14], ecx
cmp dword [eax + 0x10], 0
jbe 0x422a06
mov byte [ebp - 0xd0d], 1
jmp 0x422a0d
mov ecx, dword [ebp - 0xd14]
mov byte [ebp - 0xd0d], 0
test ecx, 0x200
je 0x422a38
and ecx, 0xfffffdff
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], ecx
jb 0x422a38
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x423359
push str._cmd_:_fileNamedown___code_:0
lea ecx, [ebp - 0xaac]
call fcn.00402b30
push 0x465da0
lea ecx, [ebp - 0xa94]
mov byte [ebp - 4], 0x11
call fcn.00402b30
push 0x465da0
lea ecx, [ebp - 0xac4]
mov byte [ebp - 4], 0x12
call fcn.00402b30
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 0x13
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422b07
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x422b07
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
or dword [ebp - 0xd14], 0x400
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x422aee
mov ecx, dword [ecx]
push str.update
push ecx
call fcn.0044e15a
add esp, 8
mov byte [ebp - 0xd0d], 1
test eax, eax
je 0x422b0e
mov byte [ebp - 0xd0d], 0
mov eax, dword [ebp - 0xd14]
test eax, 0x400
je 0x422b3d
and eax, 0xfffffbff
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], eax
jb 0x422b3d
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x422e79
push 0x468dd4
push str.fileName
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
push 0x468fc8
push str.filepath
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 0x14
call fcn.0042cbd0
lea ecx, [ebp - 0xae0]
push ecx
mov ecx, eax
call fcn.0042b8b0
push 0x104
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0x15
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call fcn.00440d80
add esp, 8
mov byte [eax + 1], 0
cmp byte [ebp - 0x11c], 0
jne 0x422bce
xor ecx, ecx
jmp 0x422be0
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422bd7
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
cmp dword [ebp - 0xacc], 0x10
lea edx, [ebp - 0xae0]
cmovae edx, dword [ebp - 0xae0]
cmp byte [edx], 0
jne 0x422c10
xor ecx, ecx
jmp 0x422c1e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422c15
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
cmp dword [ebp - 0xa50], 0x10
lea edx, [ebp - 0xa64]
cmovae edx, dword [ebp - 0xa64]
cmp byte [edx], 0
jne 0x422c48
xor ecx, ecx
jmp 0x422c59
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422c50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa94]
call fcn.00402ed0
push 1
call fcn.0043e531
add esp, 4
lea edx, [ebp - 0xa94]
cmp dword [ebp - 0xa80], 0x10
mov esi, eax
lea eax, [ebp - 0xac4]
cmovae edx, dword [ebp - 0xa94]
push eax
sub esp, 0x18
mov ecx, esp
push edx
call fcn.00402b30
call fcn.0041dc00
test esi, esi
je 0x422caa
push esi
call fcn.0043e223
add esp, 4
push 0x468fd3
push str.filemd5
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422d44
push 0x468fd3
push str.filemd5
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x422d44
push 0x468fd3
push str.filemd5
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xd3c]
push ecx
mov ecx, eax
call fcn.0042b8b0
or dword [ebp - 0xd14], 0x800
mov ecx, eax
cmp dword [ebp - 0xab0], 0x10
lea eax, [ebp - 0xac4]
cmovae eax, dword [ebp - 0xac4]
cmp dword [ecx + 0x14], 0x10
jb 0x422d2f
mov ecx, dword [ecx]
push eax
push ecx
call fcn.0044e15a
add esp, 8
mov byte [ebp - 0xd0d], 1
test eax, eax
je 0x422d4b
mov byte [ebp - 0xd0d], 0
mov eax, dword [ebp - 0xd14]
test eax, 0x800
je 0x422d6e
and eax, 0xfffff7ff
lea ecx, [ebp - 0xd3c]
mov dword [ebp - 0xd14], eax
call fcn.00402c00
cmp byte [ebp - 0xd0d], 0
lea ecx, [ebp - 0xaac]
jne 0x422e55
push str._cmd_:_fileNamedown___code_:_1
call fcn.00403f80
cmp dword [ebp - 0xa98], 0x10
lea ecx, [ebp - 0xd0c]
mov esi, dword [ebp - 0xd1c]
lea eax, [ebp - 0xaac]
cmovae eax, dword [ebp - 0xaac]
push 0x10
push ecx
push 0
push dword [ebp - 0xa9c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x422dc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0xae0]
call fcn.00402c00
lea ecx, [ebp - 0xa64]
call fcn.00402c00
lea ecx, [ebp - 0xac4]
call fcn.00402c00
lea ecx, [ebp - 0xa94]
call fcn.00402c00
lea ecx, [ebp - 0xaac]
mov byte [ebp - 4], 5
call fcn.00402c00
push 0x400
lea eax, [ebp - 0x91c]
push 0
push eax
call fcn.00443760
mov edi, dword [sym.imp.WS2_32.dll_recvfrom]
lea eax, [ebp - 0xac8]
add esp, 0xc
push eax
lea eax, [ebp - 0xd0c]
push eax
push 0
push 0x400
lea eax, [ebp - 0x91c]
push eax
push esi
call edi
cmp eax, 0xffffffff
jne 0x421e51
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x421e13
push str._cmd_:_fileNamedown___code_:0
call fcn.00403f80
lea ecx, [ebp - 0xae0]
call fcn.00402c00
lea ecx, [ebp - 0xa64]
mov byte [ebp - 4], 0x13
call fcn.00402c00
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x422f0b
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x422f0b
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov esi, dword [ebp - 0xd14]
or esi, 0x1000
mov dword [ebp - 0xd14], esi
cmp dword [eax + 0x14], 0x10
jb 0x422ef0
mov eax, dword [eax]
push str.business
push eax
call fcn.0044e15a
add esp, 8
test eax, eax
jne 0x422f11
mov byte [ebp - 0xd0d], 1
jmp 0x422f18
mov esi, dword [ebp - 0xd14]
mov byte [ebp - 0xd0d], 0
test esi, 0x1000
je 0x422f43
and esi, 0xffffefff
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], esi
jb 0x422f43
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x422fc9
push 0x468dd4
push str.fileName
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
lea eax, [edi + 0xc]
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 0x10
jb 0x422f82
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa94]
call fcn.00402c30
cmp dword [ebp - 0xa50], 0x10
lea eax, [ebp - 0xa64]
lea ecx, [ebp - 0xa94]
cmovae eax, dword [ebp - 0xa64]
push eax
call fcn.00402c30
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xa50], 0x10
jb 0x422fc9
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp dword [ebp - 0xa98], 0x10
lea ecx, [ebp - 0xd0c]
push 0x10
push ecx
push 0
push dword [ebp - 0xa9c]
lea eax, [ebp - 0xaac]
cmovae eax, dword [ebp - 0xaac]
push eax
push dword [ebp - 0xd1c]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x423006
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x4c
call fcn.0043e531
add esp, 4
test eax, eax
je 0x42301f
mov ecx, eax
call fcn.00423400
mov edi, eax
jmp 0x423021
xor edi, edi
push 0x468f9e
push str.recvip
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov dword [ebp - 0xd20], eax
cmp edi, eax
je 0x42307d
cmp dword [edi + 0x14], 0x10
jb 0x423064
push dword [edi]
call fcn.0043e223
mov eax, dword [ebp - 0xd20]
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov byte [edi], 0
call fcn.00402db0
cmp dword [ebp - 0xa50], 0x10
jb 0x423094
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
push 0x468f94
push str.prot
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
mov ecx, eax
call fcn.0042ba20
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
mov dword [edi + 0x18], eax
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x42313d
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
cmp byte [eax + 8], 4
jne 0x42313d
push 0x468ebf
push str.vertype
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
or esi, 0x2000
mov dword [ebp - 0xd14], esi
cmp dword [eax + 0x14], 0x10
jb 0x423124
mov eax, dword [eax]
push str.update
push eax
call fcn.0044e15a
add esp, 8
mov byte [ebp - 0xd0d], 1
test eax, eax
je 0x423144
mov byte [ebp - 0xd0d], 0
test esi, 0x2000
je 0x42316f
and esi, 0xffffdfff
cmp dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xd14], esi
jb 0x42316f
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0xd0d], 0
je 0x42319a
cmp dword [ebp - 0xa80], 0x10
lea eax, [ebp - 0xa94]
lea ecx, [edi + 0x1c]
cmovae eax, dword [ebp - 0xa94]
push eax
call fcn.00403f80
jmp 0x4232c4
push 0x468fd3
push str.filemd5
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xa64]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x4231c9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xae0]
call fcn.00402b30
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0xa50], 0x10
jb 0x4231f0
push dword [ebp - 0xa64]
call fcn.0043e223
add esp, 4
cmp dword [ebp + 0x50], 0x10
lea ecx, [ebp + 0x3c]
lea eax, [ebp - 0xae0]
mov dword [ebp - 0xa50], 0xf
cmovae ecx, dword [ebp + 0x3c]
cmp dword [ebp - 0xacc], 0x10
push ecx
cmovae eax, dword [ebp - 0xae0]
push eax
mov dword [ebp - 0xa54], 0
mov byte [ebp - 0xa64], 0
call fcn.0044e15a
add esp, 8
test eax, eax
jne 0x423247
push 0x465da0
lea ecx, [edi + 0x1c]
call fcn.00403f80
jmp 0x4232ad
push 0x468dd4
push str.fileName
lea ecx, [ebp - 0xa7c]
call fcn.0042cbd0
lea ecx, [ebp - 0xd54]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov edx, dword [ebp - 0xd24]
add edx, 0xc
mov byte [ebp - 4], 0x1a
cmp dword [edx + 0x14], 0x10
jb 0x42327f
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0xd3c]
call fcn.00419db0
add esp, 4
lea ecx, [edi + 0x1c]
push eax
call fcn.00404f90
lea ecx, [ebp - 0xd3c]
call fcn.00402c00
lea ecx, [ebp - 0xd54]
call fcn.00402c00
cmp dword [ebp - 0xacc], 0x10
jb 0x4232c4
push dword [ebp - 0xae0]
call fcn.0043e223
add esp, 4
push edi
push 0
push 0x4219b0
call fcn.00458433
add esp, 0xc
cmp dword [ebp - 0xab0], 0x10
jb 0x4232eb
push dword [ebp - 0xac4]
call fcn.0043e223
add esp, 4
cmp dword [ebp - 0xa80], 0x10
mov dword [ebp - 0xab0], 0xf
mov dword [ebp - 0xab4], 0
mov byte [ebp - 0xac4], 0
jb 0x42331d
push dword [ebp - 0xa94]
call fcn.0043e223
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0xa98], 0x10
mov dword [ebp - 0xa80], 0xf
mov dword [ebp - 0xa84], 0
mov byte [ebp - 0xa94], 0
jb 0x423353
push dword [ebp - 0xaac]
call fcn.0043e223
add esp, 4
mov esi, dword [ebp - 0xd1c]
mov edi, dword [sym.imp.WS2_32.dll_recvfrom]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x421e13
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 3
call fcn.0042b620
lea ecx, [ebp - 0xb6c]
call fcn.004108d0
cmp dword [ebp + 0x20], 0x10
jb 0x423397
push dword [ebp + 0xc]
call fcn.0043e223
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
jb 0x4233ba
push dword [ebp + 0x24]
call fcn.0043e223
add esp, 4
cmp dword [ebp + 0x50], 0x10
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
jb 0x4233dd
push dword [ebp + 0x3c]
call fcn.0043e223
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 0x4c