Function at 0x4d4de0
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5d4dd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48c
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x49c], eax
lea eax, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x24], 1
mov byte [esp + 0x25], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], 0x5e7c20
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x50], ebx
mov dword [esp + 0x18], 0x17040000
call dword [0x5e7c28]
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x80191027
call dword [eax + 8]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call dword [edx + 8]
push ebx
call fcn.0057bbd0
push eax
call fcn.0057a74d
add esp, 8
call fcn.0057a75a
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
jmp 0x4d4ee0
mov ecx, dword [esp + 0x48]
push 0x10
lea eax, [esp + 0x4b0]
push eax
mov eax, dword [esi + 0xf4]
push ebx
push ecx
lea edx, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
call edi
mov ecx, dword [esi + 0xf4]
push 0x3a98
push ecx
mov ecx, esi
call fcn.004d4c50
test eax, eax
jne 0x4d4f24
inc ebp
cmp ebp, 4
jl 0x4d4ee0
mov edx, dword [0x6613c8]
push 1
add edx, 4
push edx
lea ecx, [esp + 0x54]
call fcn.005789d4
mov dword [esp + 0x4a4], ebx
mov eax, dword [esi + 0x40]
mov ecx, dword [0x6613c0]
push ebx
push eax
add ecx, 0x50
call fcn.005a9fa8
test eax, eax
je 0x4d4f6a
cmp ebp, 4
jne 0x4d4f85
push str.Connect_Timeout
mov ecx, dword [esi + 0x40]
push ebx
call fcn.004674e0
mov dword [esp + 0x4a4], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.0057897a
xor eax, eax
jmp 0x4d55c5
lea eax, [esp + 0x58]
push eax
mov eax, dword [esi + 0xf4]
lea ecx, [esp + 0x78]
push ecx
push ebx
push 0x400
lea edx, [esp + 0xa8]
push edx
push eax
mov dword [esp + 0x70], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call dword [edx + 4]
cmp dword [esp + 0x10], ebx
je 0x4d4fd9
push str.Invalid_Action
jmp 0x4d4f61
mov edx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
je 0x4d4fff
push str.Invalid_transaction_id
jmp 0x4d4f61
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov edx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov edx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x1000000
call dword [edx + 8]
call fcn.0057a75a
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 8]
mov eax, dword [esi + 0x40]
push 0x14
add eax, 0xac
push eax
lea ecx, [esp + 0x20]
call fcn.0042e810
mov ecx, dword [esi + 0x40]
add ecx, 0x43c
push 0x14
push ecx
lea ecx, [esp + 0x20]
call fcn.0042e810
mov ecx, dword [esi + 0x40]
mov ebp, dword [ecx + 0x428]
mov edi, dword [ecx + 0x42c]
call fcn.0045dbc0
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x40]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x420]
mov ecx, dword [edx + 0x424]
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
call edi
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x20]
call dword [eax + 8]
push ebp
call edi
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esp + 0x68]
push eax
call edi
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esp + 0x64]
push eax
call edi
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esp + 0x60]
push eax
call edi
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esp + 0x5c]
push eax
call edi
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [esi + 0xf0]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [0x661414]
mov eax, dword [eax + 0x18]
xor ecx, ecx
cmp eax, ebx
je 0x4d51d0
mov ecx, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 8]
call fcn.0057a75a
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 8]
push 0x32
call edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 8]
mov eax, dword [0x661414]
movzx eax, word [eax + 0x16]
cmp ax, bx
jne 0x4d523f
mov ecx, dword [0x6613bc]
xor edx, edx
mov dx, word [ecx + 0x164]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 8]
mov edx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call dword [edx + 8]
or ebp, 0xffffffff
mov dword [esp + 0x4a4], ebp
lea ecx, [esp + 0x4c]
call fcn.0057897a
xor edi, edi
mov ecx, dword [esp + 0x48]
push 0x10
lea eax, [esp + 0x4b0]
push eax
mov eax, dword [esi + 0xf4]
push ebx
push ecx
lea edx, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esi + 0xf4]
push 0x3a98
push ecx
mov ecx, esi
call fcn.004d4c50
test eax, eax
jne 0x4d52c2
inc edi
cmp edi, 4
jl 0x4d5280
cmp edi, 4
lea ecx, [esp + 0x4c]
push 1
jne 0x4d530b
mov edx, dword [0x6613c8]
add edx, edi
push edx
call fcn.005789d4
mov dword [esp + 0x4a4], 1
mov eax, dword [esi + 0x40]
mov ecx, dword [0x6613c0]
push ebx
push eax
add ecx, 0x50
call fcn.005a9fa8
test eax, eax
je 0x4d53c3
push str.Tracker_Timeout
jmp 0x4d53ba
mov eax, dword [0x6613c8]
add eax, 4
push eax
call fcn.005789d4
mov dword [esp + 0x4a4], 2
mov eax, dword [esi + 0x40]
mov ecx, dword [0x6613c0]
push ebx
push eax
add ecx, 0x50
call fcn.005a9fa8
test eax, eax
je 0x4d53c3
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0xf4]
lea edx, [esp + 0x78]
push edx
push ebx
push 0x400
lea eax, [esp + 0xa8]
push eax
push ecx
mov dword [esp + 0x70], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
call dword [eax + 4]
cmp dword [esp + 0x10], 0x1000000
je 0x4d5399
push str.Invalid_action
jmp 0x4d53ba
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
je 0x4d53da
push str.Invalid_transaction_id
mov ecx, dword [esi + 0x40]
push ebx
call fcn.004674e0
mov dword [esp + 0x4a4], ebp
lea ecx, [esp + 0x4c]
call fcn.0057897a
xor eax, eax
jmp 0x4d55c5
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call ebp
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esi + 0xf8], eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call ebp
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call ebp
sub edi, dword [esp + 0x48]
mov eax, 0x2aaaaaab
imul edi
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, ebx
jle 0x4d54d6
mov dword [esp + 0x10], edi
nop
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], eax
call dword [edx + 4]
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
xor ebp, ebp
mov dword [esp + 0x5c], eax
lea ecx, [ecx]
call fcn.0057a75a
and eax, 0x800000ff
jns 0x4d54a3
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + ebp + 0x84], al
inc ebp
cmp ebp, 0x14
jl 0x4d5490
mov ecx, dword [esp + 0x5c]
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.00462bd0
dec dword [esp + 0x10]
jne 0x4d5450
mov ecx, dword [esi + 0x40]
mov dword [ecx + 0x414], 1
mov edx, dword [esi + 0xe0]
push edx
push edi
push str.Udp_Tracker_:_Get__d_Peers_From__s
push 0x661308
call fcn.004e9a20
mov ecx, dword [esi + 0x40]
add esp, 0x10
push ebx
push 1
call fcn.004674e0
or edi, 0xffffffff
mov dword [esp + 0x4a4], edi
lea ecx, [esp + 0x4c]
call fcn.0057897a
mov eax, dword [0x6613c8]
push 1
add eax, 4
push eax
lea ecx, [esp + 0x54]
call fcn.005789d4
mov dword [esp + 0x4a4], 3
mov eax, dword [esi + 0x40]
mov ecx, dword [0x6613c0]
push ebx
push eax
add ecx, 0x50
call fcn.005a9fa8
test eax, eax
jne 0x4d5565
mov dword [esp + 0x4a4], edi
lea ecx, [esp + 0x4c]
call fcn.0057897a
xor eax, eax
jmp 0x4d55c5
mov ecx, dword [esi + 0x40]
add ecx, 0xc
push 1
push ecx
lea ecx, [esp + 0x6c]
call fcn.005789d4
mov byte [esp + 0x4a4], 4
mov edx, dword [esi + 0xe4]
mov ecx, dword [esi + 0x40]
push edx
call fcn.00465f40
test eax, eax
je 0x4d559f
mov eax, dword [esi + 0xe4]
mov dword [eax + 0x14], 2
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x64]
call fcn.0057897a
mov dword [esp + 0x4a4], edi
lea ecx, [esp + 0x4c]
call fcn.0057897a
mov eax, 1
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48c]
pop ebx
call fcn.0057981f
add esp, 0x498
ret 0x10