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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4861d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a3350]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4a3350]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x1c], eax
call fcn.0040fad0
add esp, 4
mov edi, eax
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0040e6b0
mov dword [esp + 0x80], 0
cmp dword [esp + 0x4c], 0
jne 0x40d72b
mov byte [esp + 0x12], 0
jmp 0x40d738
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov byte [esp + 0x12], al
push ebx
call fcn.00407990
add esp, 4
lea ecx, [esp + 0x54]
mov edx, dword [eax]
push ecx
push 0x49c19a
push str.0123456789ABCDEFabcdef_Xx
mov ecx, eax
call dword [edx + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, esi
mov ebx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x18], ebx
call fcn.0040ff80
test al, al
jne 0x40d810
cmp byte [esi + 4], al
jne 0x40d7ad
mov ecx, dword [esi]
test ecx, ecx
je 0x40d7a3
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40d794
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x40d794
movzx eax, byte [edx]
jmp 0x40d799
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x40d7a3
mov byte [esi + 5], al
jmp 0x40d7a9
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x6b]
jne 0x40d7bb
mov byte [ebx], 0x2b
jmp 0x40d802
cmp byte [esi + 4], 0
jne 0x40d7f6
mov ecx, dword [esi]
test ecx, ecx
je 0x40d7ec
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40d7dd
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x40d7dd
movzx eax, byte [edx]
jmp 0x40d7e2
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x40d7ec
mov byte [esi + 5], al
jmp 0x40d7f2
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x6a]
jne 0x40d810
mov byte [ebx], 0x2d
lea eax, [ebx + 1]
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0040f720
mov ebx, dword [ebp + 0x18]
and ebx, 0xe00
cmp ebx, 0x400
jne 0x40d828
mov ebx, 8
jmp 0x40d83e
cmp ebx, 0x800
jne 0x40d837
mov ebx, 0x10
jmp 0x40d83e
neg ebx
sbb ebx, ebx
and ebx, 0xa
push edi
mov ecx, esi
mov dword [ebp + 0x18], ebx
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
call fcn.0040ff80
test al, al
jne 0x40d8fd
cmp byte [esi + 4], al
jne 0x40d895
mov ecx, dword [esi]
test ecx, ecx
je 0x40d88b
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40d87c
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x40d87c
movzx eax, byte [edx]
jmp 0x40d881
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x40d88b
mov byte [esi + 5], al
jmp 0x40d891
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x54]
jne 0x40d8fd
mov ecx, esi
mov byte [esp + 0x11], 1
call fcn.0040f720
push edi
mov ecx, esi
call fcn.0040ff80
test al, al
jne 0x40d8ef
mov ecx, esi
call fcn.0040f6d0
cmp al, byte [esp + 0x6d]
je 0x40d8d0
mov ecx, esi
call fcn.0040f6d0
cmp al, byte [esp + 0x6c]
jne 0x40d8ef
test ebx, ebx
je 0x40d8d9
cmp ebx, 0x10
jne 0x40d8ef
mov ebx, 0x10
mov byte [esp + 0x11], 0
mov ecx, esi
mov dword [ebp + 0x18], ebx
call fcn.0040f720
jmp 0x40d906
test ebx, ebx
jne 0x40d901
mov ebx, 8
mov dword [ebp + 0x18], ebx
jmp 0x40d906
test ebx, ebx
je 0x40d91b
cmp ebx, 0xa
je 0x40d91b
mov ecx, 8
mov eax, 0x16
cmp ebx, ecx
cmove eax, ecx
mov dword [esp + 0x20], eax
jmp 0x40d923
mov dword [esp + 0x20], 0xa
mov al, byte [esp + 0x11]
mov ebx, 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x24], al
mov dword [esp + 0x34], 1
mov byte [esp + 0x25], 0
push dword [esp + 0x18]
mov ecx, esi
mov byte [esp + 0x84], 1
xor edi, edi
call fcn.0040ff80
test al, al
jne 0x40db10
jmp 0x40d964
mov ebx, dword [esp + 0x38]
cmp byte [esi + 4], 0
jne 0x40d99f
mov ecx, dword [esi]
test ecx, ecx
je 0x40d995
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40d986
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x40d986
movzx eax, byte [edx]
jmp 0x40d98b
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x40d995
mov byte [esi + 5], al
jmp 0x40d99b
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x54]
lea eax, [esp + 0x54]
mov dl, byte [esi + 5]
test cl, cl
je 0x40d9bc
mov edi, edi
cmp cl, dl
je 0x40d9bc
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d9b0
lea ecx, [esp + 0x54]
sub eax, ecx
cmp eax, dword [esp + 0x20]
jae 0x40da22
cmp byte [esp + 0x13], 0
mov ecx, dword [esp + 0x14]
mov al, byte [eax + str.0123456789ABCDEFabcdef_Xx]
mov byte [ecx], al
jne 0x40d9df
cmp al, 0x30
je 0x40d9f4
mov edx, dword [esp + 0x1c]
lea eax, [edx + 0x1f]
cmp ecx, eax
jae 0x40d9f4
inc ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], ecx
cmp ebx, 0x10
mov byte [esp + 0x11], 1
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x24]
cmovae eax, ebx
cmp byte [eax + edi], 0x7f
je 0x40da9c
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, ebx
inc byte [eax + edi]
jmp 0x40da98
cmp ebx, 0x10
lea eax, [esp + 0x24]
mov ebx, dword [esp + 0x24]
cmovae eax, ebx
cmp byte [eax + edi], 0
je 0x40daf2
mov al, byte [esp + 0x12]
test al, al
je 0x40daf2
cmp byte [esi + 4], 0
jne 0x40da85
mov ecx, dword [esi]
test ecx, ecx
je 0x40da77
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40da68
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x40da68
movzx eax, byte [edx]
jmp 0x40da6d
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x40da77
mov byte [esi + 5], al
jmp 0x40da7d
mov dword [esi], 0
mov al, byte [esp + 0x12]
mov byte [esi + 4], 1
cmp byte [esi + 5], al
jne 0x40daf2
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.004067a0
inc edi
mov ebx, dword [esp + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x40dad5
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x40dac5
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x40dac5
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x40daca
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x40dad5
mov byte [esi + 4], 0
jmp 0x40dadf
mov dword [esi], 0
mov byte [esi + 4], 1
push dword [esp + 0x18]
mov ecx, esi
call fcn.0040ff80
test al, al
je 0x40d960
test edi, edi
je 0x40db10
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, ebx
cmp byte [eax + edi], 0
jle 0x40db0b
inc edi
jmp 0x40db10
mov byte [esp + 0x11], 0
mov esi, dword [esp + 0x50]
lea edx, [esp + 0x3c]
mov ebx, dword [esp + 0x3c]
cmp esi, 0x10
cmovae edx, ebx
cmp byte [esp + 0x11], 0
je 0x40db81
lea esp, [esp]
test edi, edi
je 0x40db70
mov cl, byte [edx]
cmp cl, 0x7f
je 0x40db70
dec edi
je 0x40db51
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp cl, byte [eax + edi]
jne 0x40db81
test edi, edi
jne 0x40db67
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp cl, byte [eax]
jl 0x40db81
cmp byte [edx + 1], 0
jle 0x40db30
inc edx
jmp 0x40db30
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x14]
jne 0x40db85
mov byte [eax], 0x30
inc eax
jmp 0x40db85
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], 0x10
mov byte [eax], 0
jb 0x40dba3
push dword [esp + 0x24]
call fcn.004235a4
mov esi, dword [esp + 0x54]
add esp, 4
mov ebx, dword [esp + 0x3c]
cmp esi, 0x10
jb 0x40dbb1
push ebx
call fcn.004235a4
add esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042419e
mov esp, ebp
pop ebp
ret