Function at 0x4a91b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x628f65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
and dword [esp + 8], 0
push ebx
push esi
push edi
push 3
lea esi, [esp + 0x54]
mov dword [esp + 0x1c], ecx
call fcn.0042ea8d
and dword [esp + 0x104], 0
mov ebx, dword [ebp + 8]
lea eax, [ebx + 8]
push eax
push ecx
push 0x68ad8c
mov eax, esi
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
push 0x68aff0
mov eax, 0x68aff4
lea edi, [esp + 0x20]
call fcn.0046f5e2
mov byte [esp + 0x104], 1
push eax
push ecx
push 0x68aff4
mov eax, esi
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
cmp dword [ebx + 4], 4
lea ecx, [esp + 0x1c]
jne 0x4a936e
push 0x685600
call fcn.00402c8d
mov byte [esp + 0x104], 2
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x682b9c
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
push 2
lea esi, [esp + 0x7c]
call fcn.0042ea8d
mov byte [esp + 0x104], 3
mov eax, dword [ebx + 0x138]
cdq
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
lea eax, [esp + 0xa8]
call fcn.0042eb79
mov byte [esp + 0x104], 4
push eax
call fcn.0042ea3b
call fcn.0041c6a6
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xa8]
call fcn.0042e9bc
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0042eaef
mov byte [esp + 0x104], 5
push eax
call fcn.0042ea3b
call fcn.0041c6a6
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xa8]
call fcn.0042e9bc
mov eax, esi
push eax
push ecx
push 0x685600
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
add esp, 4
call fcn.0042e9d0
mov byte [esp + 0x104], 0
mov ecx, esi
call fcn.0042e9bc
jmp 0x4a98e5
cmp byte [ebx], 0
je 0x4a9683
push 0x68add4
call fcn.00402c8d
mov byte [esp + 0x104], 6
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x682b9c
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
push 3
lea esi, [esp + 0x7c]
call fcn.0042ea8d
mov byte [esp + 0x104], 7
push eax
push ecx
mov esi, 0x68add4
push esi
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
add esp, 4
call fcn.0042e9d0
mov byte [esp + 0x104], 0
lea ecx, [esp + 0x78]
call fcn.0042e9bc
push esi
lea eax, [esp + 0x54]
push eax
call fcn.0042e643
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x24]
push eax
lea esi, [esp + 0x24]
call fcn.00487c87
mov byte [esp + 0x104], 8
push eax
push ecx
push 0x682b0c
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
xor esi, esi
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
cmp dword [ebx + 0x118], esi
je 0x4a946f
lea eax, [ebx + 0x104]
push eax
push ecx
push 0x689c4c
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
cmp dword [ebx + 0xfc], esi
je 0x4a9494
lea eax, [ebx + 0xe8]
push eax
push ecx
push str.token
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov eax, dword [ebx + 4]
dec eax
je 0x4a9672
dec eax
jne 0x4a98e5
push ebx
push dword [esp + 0x14]
call fcn.004a8f32
lea edi, [ebx + 0xd0]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
pop ecx
pop ecx
test eax, 0xffffff80
je 0x4a98e5
push 2
lea esi, [esp + 0xac]
call fcn.0042ea8d
mov byte [esp + 0x104], 9
push eax
push ecx
mov esi, str.values
push esi
push dword [esp + 0x1c]
call fcn.0042e643
add esp, 4
call fcn.0042e9d0
mov byte [esp + 0x104], 0
lea ecx, [esp + 0xa8]
call fcn.0042e9bc
push esi
push dword [esp + 0x14]
call fcn.0042e643
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0xf
call fcn.00403c2c
mov byte [esp + 0x104], 0xa
push dword [edi + 0xc]
lea esi, [esp + 0x3c]
call fcn.00411f96
push dword [edi + 0x10]
lea esi, [esp + 0x44]
call fcn.00411f96
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4a955e
cmp esi, dword [esp + 0x40]
je 0x4a9563
call fcn.005b331a
cmp edi, dword [esp + 0x44]
je 0x4a965d
push 0x12
pop eax
lea ecx, [esp + 0x1c]
call fcn.0040921f
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
call fcn.0040990a
test esi, esi
jne 0x4a9652
call fcn.005b331a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4a95a0
call fcn.005b331a
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.0042c50f
mov ecx, eax
lea eax, [esp + 0x48]
call fcn.004aba6c
movzx eax, word [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
lea eax, [esp + 0x4c]
call fcn.004abae8
pop ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040990a
push eax
lea eax, [esp + 0x4c]
call fcn.004255d2
lea ecx, [esp + 0x1c]
call fcn.0040921f
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.0042eaef
mov byte [esp + 0x104], 0xb
mov esi, dword [esp + 0x10]
push eax
call fcn.0042ea3b
call fcn.0041c6a6
mov byte [esp + 0x104], 0xa
lea ecx, [esp + 0xd0]
call fcn.0042e9bc
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4a9659
call fcn.005b331a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4a964a
call fcn.005b331a
sub edi, 0xffffff80
jmp 0x4a9550
mov eax, dword [esi]
jmp 0x4a9596
mov eax, dword [eax]
jmp 0x4a9640
mov byte [esp + 0x104], 0
push 0
push 1
lea ecx, [esp + 0x24]
jmp 0x4a98e0
push ebx
push dword [esp + 0x14]
call fcn.004a8f32
pop ecx
pop ecx
jmp 0x4a98e5
push 0x68ae90
call fcn.00402c8d
mov byte [esp + 0x104], 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x682b9c
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
push 3
lea esi, [esp + 0xd4]
call fcn.0042ea8d
mov byte [esp + 0x104], 0xd
push eax
push ecx
mov esi, 0x68ae48
push esi
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
add esp, 4
call fcn.0042e9d0
mov byte [esp + 0x104], 0
lea ecx, [esp + 0xd0]
call fcn.0042e9bc
push esi
lea eax, [esp + 0x54]
push eax
call fcn.0042e643
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x24]
push eax
lea esi, [esp + 0x24]
call fcn.00487c87
mov byte [esp + 0x104], 0xe
push eax
push ecx
push 0x682b0c
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push 0
push edi
mov ecx, esi
call fcn.00403b67
mov eax, dword [ebx + 4]
push dword [eax*4 + 0x680cd0]
lea ecx, [esp + 0x20]
call fcn.00402c8d
mov byte [esp + 0x104], 0xf
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x68ae90
lea eax, [esp + 0x5c]
push eax
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push 0
push edi
lea ecx, [esp + 0x24]
call fcn.00403b67
mov eax, dword [ebx + 4]
dec eax
je 0x4a9896
dec eax
je 0x4a984d
dec eax
jne 0x4a98e5
lea esi, [ebx + 0x134]
mov eax, dword [esi]
cdq
push str.port
push dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.0042e643
lea edi, [esp + 0x40]
call fcn.0042ec1f
push esi
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0x24]
call fcn.00487c87
mov byte [esp + 0x104], 0x12
push eax
push ecx
push 0x68aef8
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
push 0
push 1
mov ecx, esi
call fcn.00403b67
lea eax, [ebx + 0xe8]
push eax
push ecx
push str.token
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
jmp 0x4a98e5
lea eax, [ebx + 0x134]
push eax
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0xb0]
mov dword [esp + 0x1c], edi
call fcn.00487c87
mov byte [esp + 0x104], 0x11
push eax
push ecx
push 0x68aef8
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
mov ecx, esi
jmp 0x4a98dd
lea eax, [ebx + 0x134]
push eax
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0x80]
mov dword [esp + 0x1c], edi
call fcn.00487c87
mov byte [esp + 0x104], 0x10
push eax
push ecx
push str.target
push dword [esp + 0x1c]
call fcn.0042e643
pop ecx
push eax
call fcn.0042eb96
mov byte [esp + 0x104], 0
mov ecx, esi
push 0
push edi
call fcn.00403b67
mov edi, dword [esp + 0x18]
lea esi, [edi + 0x4490]
mov eax, esi
call fcn.00411b7c
lea eax, [esp + 0x50]
push eax
push esi
call fcn.004274cf
pop ecx
pop ecx
call fcn.005e9710
push dword [esp + 0x14]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
lea ecx, [esp + 0xa4]
push ecx
push eax
add ebx, 0x38
push 0
mov dword [esp + 0x28], ebx
call fcn.00411b61
mov ecx, dword [edi + 0x448c]
push eax
push ebx
call fcn.0045a207
test al, al
je 0x4a9963
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 0xc]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00445ea9
mov eax, dword [eax]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffec
add eax, 0x30
add eax, ebx
add dword [edi + 0x4518], eax
or dword [esp + 0x104], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0042e9bc
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4