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

Disassembly:
push 0xffffffffffffffff
push 0x471fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
cmp byte [esp + 0x6c], 0
mov ebx, ecx
je 0x412c02
push 3
push esi
call fcn.00412a70
cmp byte [esi + 0x99d], 0
je 0x412d19
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x64], eax
cmp ebx, eax
je 0x412c43
test ebx, 0xffff0000
jne 0x412c43
movzx eax, bx
push eax
lea eax, [esp + 0x24]
call fcn.00406620
jmp 0x412c50
push ebx
lea ebx, [esp + 0x24]
call fcn.00406760
add esp, 4
lea edi, [esp + 0x20]
mov dword [esp + 0x64], 1
call fcn.00421070
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x34], 8
mov ebp, eax
jb 0x412c7f
mov edx, dword [esp + 0x20]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
test ebp, ebp
jne 0x412caf
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 1
mov ebx, str.Failed_to_convert_reply_to_UTF_8
jmp 0x4130f7
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412cb4
sub eax, edx
add eax, 3
push eax
call fcn.004576a9
mov ebx, eax
mov edx, ebx
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412cd5
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412ce2
mov dx, word [0x47e7e4]
mov word [eax], dx
mov cl, byte [0x47e7e6]
mov edi, ebx
mov byte [eax + 2], cl
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x412d02
push ebp
sub edi, ecx
call fcn.00459522
add esp, 4
jmp 0x412eca
mov edi, 7
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], dx
mov dword [esp + 0x64], 2
cmp ebx, ebp
je 0x412d52
test ebx, 0xffff0000
jne 0x412d52
movzx eax, bx
push eax
lea eax, [esp + 0x40]
call fcn.00406620
jmp 0x412d61
push ebx
lea ebx, [esp + 0x40]
call fcn.00406760
add esp, 4
xor ebp, ebp
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 3
call fcn.004210e0
mov byte [esp + 0x64], 5
cmp dword [esp + 0x50], 8
jb 0x412d8f
mov eax, dword [esp + 0x3c]
push eax
call fcn.004593e2
add esp, 4
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
mov edx, ebx
cmp edi, 0x10
jae 0x412db1
lea edx, [esp + 0x20]
xor eax, eax
mov ecx, 0x482fa4
call fcn.0041f800
cmp eax, ebp
jne 0x412dcc
xor eax, eax
cmp dword [esp + 0x30], ebp
setne al
cmp eax, ebp
sete al
test al, al
je 0x412e1d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 1
push esi
mov ebx, str.Failed_to_convert_reply_to_local_charset
call fcn.00412a70
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x78]
mov edx, dword [0x49131c]
push ecx
mov ecx, 1
call fcn.0044b670
cmp dword [esp + 0x34], 0x10
jb 0x413114
mov edx, dword [esp + 0x20]
push edx
call fcn.004593e2
add esp, 4
jmp 0x413114
mov eax, ebx
cmp edi, 0x10
jae 0x412e28
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x412e30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412e30
sub eax, edx
add eax, 3
push eax
call fcn.004576a9
mov ecx, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x14], eax
jae 0x412e58
lea ecx, [esp + 0x20]
mov ebx, eax
sub ebx, ecx
lea esp, [esp]
mov dl, byte [ecx]
mov byte [ebx + ecx], dl
inc ecx
test dl, dl
jne 0x412e60
lea ecx, [eax - 1]
lea ecx, [ecx]
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x412e70
mov dx, word [0x47e7e4]
mov word [ecx], dx
mov dl, byte [0x47e7e6]
mov edi, eax
mov byte [ecx + 2], dl
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x412e90
sub edi, ecx
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x412eb5
mov eax, dword [esp + 0x20]
push eax
call fcn.004593e2
add esp, 4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
mov ebp, dword [esi + 0x894]
test ebp, ebp
je 0x412f35
mov ecx, dword [esi + 0x898]
add ecx, edi
push ecx
call fcn.004576a9
mov edx, dword [esi + 0x898]
add esp, 4
push edx
push ebp
push eax
mov dword [esi + 0x894], eax
call fcn.0045bc60
mov eax, dword [esi + 0x898]
add esp, 0xc
add eax, dword [esi + 0x894]
push edi
push ebx
push eax
call fcn.0045bc60
add esp, 0xc
push ebp
call fcn.00459522
add dword [esi + 0x898], edi
add esp, 4
push ebx
call fcn.00459522
add esp, 4
mov eax, 1
jmp 0x413116
xor edx, edx
mov ecx, esi
call fcn.0041af20
mov ebp, eax
mov ecx, edx
mov edx, ebp
or edx, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
jne 0x412faa
mov ebp, dword [esi + 0x894]
test ebp, ebp
jne 0x412f6e
mov dword [esi + 0x894], ebx
mov dword [esi + 0x898], edi
lea eax, [edx + 1]
jmp 0x413116
mov eax, dword [esi + 0x898]
add eax, edi
push eax
call fcn.004576a9
mov ecx, dword [esi + 0x898]
add esp, 4
push ecx
push ebp
push eax
mov dword [esi + 0x894], eax
call fcn.0045bc60
mov edx, dword [esi + 0x898]
add esp, 0xc
add edx, dword [esi + 0x894]
push edi
push ebx
push edx
jmp 0x412f0b
mov eax, ebp
and eax, ecx
mov dword [esp + 0x10], edi
cmp eax, 0xffffffff
je 0x412fc8
mov eax, edi
cdq
cmp edx, ecx
jl 0x412fc8
jg 0x412fc4
cmp eax, ebp
jbe 0x412fc8
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00409d90
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412ff2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4130de
xor ebp, ebp
jmp 0x412ffa
test ebp, ebp
je 0x4130de
mov eax, dword [esp + 0x18]
and eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x413016
mov eax, ebp
cdq
add dword [esi + 0x9c0], eax
adc dword [esi + 0x9c4], edx
cmp ebp, edi
je 0x4130c4
mov eax, dword [esi + 0x894]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x413053
sub edi, ebp
push edi
call fcn.004576a9
add esp, 4
push edi
lea edx, [ebx + ebp]
push edx
push eax
mov dword [esi + 0x894], eax
call fcn.0045bc60
add esp, 0xc
mov dword [esi + 0x898], edi
jmp 0x4130b4
mov eax, dword [esi + 0x898]
sub eax, ebp
add eax, edi
push eax
call fcn.004576a9
mov ecx, dword [esi + 0x898]
mov edx, dword [esp + 0x14]
add esp, 4
push ecx
push edx
push eax
mov dword [esi + 0x894], eax
call fcn.0045bc60
mov edx, dword [esi + 0x898]
add edx, dword [esi + 0x894]
add esp, 0xc
mov eax, edi
sub eax, ebp
push eax
lea ecx, [ebx + ebp]
push ecx
push edx
call fcn.0045bc60
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.00459522
sub edi, ebp
add esp, 4
add dword [esi + 0x898], edi
mov eax, 2
mov ebx, esi
call fcn.0040a6e0
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00459522
mov eax, dword [esi + 0x54]
add esp, 4
mov ecx, ebp
call fcn.00446f30
mov eax, 1
jmp 0x413116
push ebx
call fcn.00459522
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 4
mov ecx, esi
call eax
push 0
mov ebx, str.could_not_send_reply__disconnected.
push esi
call fcn.00412a70
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x78]
mov edx, dword [0x49131c]
push ecx
mov ecx, 1
call fcn.0044b670
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004593ed
add esp, 0x58
ret 4