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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x630412
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.00420dbc
and dword [esp + 0x104], 0
mov ebx, dword [ebp + 8]
lea eax, [ebx + 8]
push eax
push ecx
push 0x68ff14
mov eax, esi
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
push 0x690178
mov eax, 0x69017c
lea edi, [esp + 0x20]
call fcn.004925e9
mov byte [esp + 0x104], 1
push eax
push ecx
push 0x69017c
mov eax, esi
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
cmp dword [ebx + 4], 4
lea ecx, [esp + 0x1c]
jne 0x49c61d
push 0x68a780
call fcn.0040188e
mov byte [esp + 0x104], 2
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x687d1c
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
push 2
lea esi, [esp + 0x7c]
call fcn.00420dbc
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.00420ea8
mov byte [esp + 0x104], 4
push eax
call fcn.00420d6a
call fcn.00411f12
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xa8]
call fcn.00420ceb
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.00420e1e
mov byte [esp + 0x104], 5
push eax
call fcn.00420d6a
call fcn.00411f12
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xa8]
call fcn.00420ceb
mov eax, esi
push eax
push ecx
push 0x68a780
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
add esp, 4
call fcn.00420cff
mov byte [esp + 0x104], 0
mov ecx, esi
call fcn.00420ceb
jmp 0x49cb94
cmp byte [ebx], 0
je 0x49c932
push 0x68ff5c
call fcn.0040188e
mov byte [esp + 0x104], 6
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x687d1c
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
push 3
lea esi, [esp + 0x7c]
call fcn.00420dbc
mov byte [esp + 0x104], 7
push eax
push ecx
mov esi, 0x68ff5c
push esi
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
add esp, 4
call fcn.00420cff
mov byte [esp + 0x104], 0
lea ecx, [esp + 0x78]
call fcn.00420ceb
push esi
lea eax, [esp + 0x54]
push eax
call fcn.00420972
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x24]
push eax
lea esi, [esp + 0x24]
call fcn.0045e9b6
mov byte [esp + 0x104], 8
push eax
push ecx
push 0x687c8c
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
xor esi, esi
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
cmp dword [ebx + 0x118], esi
je 0x49c71e
lea eax, [ebx + 0x104]
push eax
push ecx
push 0x68da08
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
cmp dword [ebx + 0xfc], esi
je 0x49c743
lea eax, [ebx + 0xe8]
push eax
push ecx
push str.token
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov eax, dword [ebx + 4]
dec eax
je 0x49c921
dec eax
jne 0x49cb94
push ebx
push dword [esp + 0x14]
call fcn.0049c1e1
lea edi, [ebx + 0xd0]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
pop ecx
pop ecx
test eax, 0xffffff80
je 0x49cb94
push 2
lea esi, [esp + 0xac]
call fcn.00420dbc
mov byte [esp + 0x104], 9
push eax
push ecx
mov esi, str.values
push esi
push dword [esp + 0x1c]
call fcn.00420972
add esp, 4
call fcn.00420cff
mov byte [esp + 0x104], 0
lea ecx, [esp + 0xa8]
call fcn.00420ceb
push esi
push dword [esp + 0x14]
call fcn.00420972
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0xf
call fcn.00401e8e
mov byte [esp + 0x104], 0xa
push dword [edi + 0xc]
lea esi, [esp + 0x3c]
call fcn.0040edee
push dword [edi + 0x10]
lea esi, [esp + 0x44]
call fcn.0040edee
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x49c80d
cmp esi, dword [esp + 0x40]
je 0x49c812
call fcn.005a6714
cmp edi, dword [esp + 0x44]
je 0x49c90c
push 0x12
pop eax
lea ecx, [esp + 0x1c]
call fcn.0040624a
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
call fcn.004063d1
test esi, esi
jne 0x49c901
call fcn.005a6714
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x49c84f
call fcn.005a6714
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.0042ee76
mov ecx, eax
lea eax, [esp + 0x48]
call fcn.0049f003
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.0049f07f
pop ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.004063d1
push eax
lea eax, [esp + 0x4c]
call fcn.00417baa
lea ecx, [esp + 0x1c]
call fcn.0040624a
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00420e1e
mov byte [esp + 0x104], 0xb
mov esi, dword [esp + 0x10]
push eax
call fcn.00420d6a
call fcn.00411f12
mov byte [esp + 0x104], 0xa
lea ecx, [esp + 0xd0]
call fcn.00420ceb
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x49c908
call fcn.005a6714
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x49c8f9
call fcn.005a6714
sub edi, 0xffffff80
jmp 0x49c7ff
mov eax, dword [esi]
jmp 0x49c845
mov eax, dword [eax]
jmp 0x49c8ef
mov byte [esp + 0x104], 0
push 0
push 1
lea ecx, [esp + 0x24]
jmp 0x49cb8f
push ebx
push dword [esp + 0x14]
call fcn.0049c1e1
pop ecx
pop ecx
jmp 0x49cb94
push 0x690018
call fcn.0040188e
mov byte [esp + 0x104], 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x687d1c
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
push 3
lea esi, [esp + 0xd4]
call fcn.00420dbc
mov byte [esp + 0x104], 0xd
push eax
push ecx
mov esi, 0x68ffd0
push esi
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
add esp, 4
call fcn.00420cff
mov byte [esp + 0x104], 0
lea ecx, [esp + 0xd0]
call fcn.00420ceb
push esi
lea eax, [esp + 0x54]
push eax
call fcn.00420972
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x24]
push eax
lea esi, [esp + 0x24]
call fcn.0045e9b6
mov byte [esp + 0x104], 0xe
push eax
push ecx
push 0x687c8c
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push 0
push edi
mov ecx, esi
call fcn.00401ac6
mov eax, dword [ebx + 4]
push dword [eax*4 + 0x685eb0]
lea ecx, [esp + 0x20]
call fcn.0040188e
mov byte [esp + 0x104], 0xf
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x690018
lea eax, [esp + 0x5c]
push eax
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push 0
push edi
lea ecx, [esp + 0x24]
call fcn.00401ac6
mov eax, dword [ebx + 4]
dec eax
je 0x49cb45
dec eax
je 0x49cafc
dec eax
jne 0x49cb94
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.00420972
lea edi, [esp + 0x40]
call fcn.00420f4e
push esi
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0x24]
call fcn.0045e9b6
mov byte [esp + 0x104], 0x12
push eax
push ecx
push 0x690080
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
push 0
push 1
mov ecx, esi
call fcn.00401ac6
lea eax, [ebx + 0xe8]
push eax
push ecx
push str.token
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
jmp 0x49cb94
lea eax, [ebx + 0x134]
push eax
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0xb0]
mov dword [esp + 0x1c], edi
call fcn.0045e9b6
mov byte [esp + 0x104], 0x11
push eax
push ecx
push 0x690080
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
mov ecx, esi
jmp 0x49cb8c
lea eax, [ebx + 0x134]
push eax
lea eax, [ebx + 0x120]
push eax
lea esi, [esp + 0x80]
mov dword [esp + 0x1c], edi
call fcn.0045e9b6
mov byte [esp + 0x104], 0x10
push eax
push ecx
push str.target
push dword [esp + 0x1c]
call fcn.00420972
pop ecx
push eax
call fcn.00420ec5
mov byte [esp + 0x104], 0
mov ecx, esi
push 0
push edi
call fcn.00401ac6
mov edi, dword [esp + 0x18]
lea esi, [edi + 0x4490]
mov eax, esi
call fcn.00409ad2
lea eax, [esp + 0x50]
push eax
push esi
call fcn.00419c16
pop ecx
pop ecx
call fcn.005dcfc0
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.00409ab7
mov ecx, dword [edi + 0x448c]
push eax
push ebx
call fcn.004858ae
test al, al
je 0x49cc12
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 0xc]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x1c]
call fcn.004385c6
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.00420ceb
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4