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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov dword [esi + 0x118], ebp
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 0x120]
mov dword [eax - 4], esp
xor edi, edi
dec edi
mov dword [eax + 8], edi
mov dword [eax + 4], 0x41d060
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov dword [esi + 0x70], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
xor edx, edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], edx
mov dword [eax + 8], edx
lea eax, [esi + 0x78]
push eax
call fcn.0040612a
mov dword [esi + 0x128], 1
lea ecx, [esi + 0x78]
push 0x4ba190
call fcn.00418d68
mov edx, dword [eax]
lea edi, [esi + 0x40]
mov ecx, eax
push edi
push 0x49c6ba
push str.0123456789abcdefABCDEFxX_pPiInN
call dword [edx + 0x28]
mov ecx, dword [esi + 0x78]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x40d97c
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
lea ecx, [esi + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esi + 0x128], 2
push eax
push 0xa
call fcn.0041df72
cmp byte [esi + 0x1b], 0
lea ecx, [esi + 0x10]
jns 0x40d9a7
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x1c]
mov dword [esi], ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
push 0xa0
push 0xff
lea edi, [esi + 0x78]
push edi
call fcn.004773d0
add esp, 0xc
lea eax, [esi + 0x30]
mov dword [eax], edi
lea eax, [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40d9f4
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov edi, dword [esi]
je 0x40d9ff
movzx eax, word [eax]
jmp 0x40da09
mov bl, 1
xor ecx, ecx
mov edx, dword [esi + 8]
mov edi, dword [esi]
jmp 0x40da1b
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 4]
mov edi, dword [esi]
xor edx, edx
cmp ax, 0xffff
sete bl
je 0x40da16
mov edx, ecx
mov ecx, edx
mov edx, dword [esi + 8]
test edx, edx
mov dword [esi + 4], ecx
je 0x40da53
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x40da2f
movzx eax, word [eax]
jmp 0x40da44
mov byte [esi + 0xf], bl
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, dword [esi]
mov bl, byte [esi + 0xf]
cmp ax, 0xffff
je 0x40da53
test bl, bl
jne 0x40da5d
jmp 0x40db2b
xor edx, edx
test bl, bl
jne 0x40db24
mov dword [esi + 8], edx
mov eax, dword [esi + 0x1c]
movzx ebx, byte [esi + 0x1b]
test bl, bl
jns 0x40da6e
mov ebx, dword [esi + 0x14]
lea edx, [edi + ebx]
cmp eax, edx
jne 0x40dabd
mov dword [esi], ebx
lea eax, [ebx + ebx]
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.0041df72
mov eax, dword [esi + 0x18]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x1b], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.0041df72
cmp byte [esi + 0x1b], 0
lea edi, [esi + 0x10]
jns 0x40dab3
mov edi, dword [esi + 0x10]
mov eax, dword [esi]
add eax, edi
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esi], edi
je 0x40dacc
movzx eax, word [eax]
jmp 0x40dad3
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi]
movzx eax, ax
lea ecx, [esi + 0x40]
push ecx
lea ecx, [esi + 0x30]
push ecx
lea ecx, [esi + 0x78]
push ecx
lea ecx, [esi + 0x20]
push ecx
push 0
lea ecx, [esi + 0x2c]
push ecx
lea ecx, [esi + 0x1c]
push ecx
push edi
push 0x10
push eax
call fcn.0040dcb8
add esp, 0x28
test eax, eax
jne 0x40db20
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x40db16
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x40d9de
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x40d9de
mov edi, dword [esi]
jmp 0x40db2b
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
sub eax, edi
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.0041df72
lea eax, [esi + 0x34]
push eax
call fcn.0040b610
add esp, 4
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x1b], 0
lea ecx, [esi + 0x10]
jns 0x40db56
mov ecx, dword [esi + 0x10]
push dword [ebp + 0x1c]
push eax
push 0x49b366
push ecx
call fcn.0040b5ba
add esp, 0x10
mov edi, eax
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x40db81
mov ecx, ebx
call fcn.004089e0
push ebx
call fcn.00473386
add esp, 4
cmp edi, 1
je 0x40db8f
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
mov ecx, dword [esi + 4]
test ecx, ecx
mov edi, dword [ebp + 8]
mov edx, dword [esi + 8]
je 0x40dba9
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x40dbaf
movzx eax, word [eax]
jmp 0x40dbba
mov bl, 1
xor ecx, ecx
jmp 0x40dbc9
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edx, edx
cmp ax, 0xffff
sete bl
cmove ecx, edx
mov edx, dword [esi + 8]
test edx, edx
je 0x40dbda
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x40dbe0
movzx eax, word [eax]
jmp 0x40dbf4
test bl, bl
jne 0x40dbff
jmp 0x40dc05
mov byte [esi], bl
mov dword [esi + 4], ecx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov bl, byte [esi]
cmp ax, 0xffff
sete al
xor bl, al
jne 0x40dc05
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov dword [edi], ecx
cmp byte [esi + 0x1b], 0
jns 0x40dc18
push dword [esi + 0x10]
call fcn.00473386
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x40dc29
push dword [esi + 0x20]
call fcn.00473386
add esp, 4
mov eax, dword [esi + 0x120]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18