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

Disassembly:
push 0xffffffffffffffff
push 0x451c60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x467340]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x467340]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00408cb0
mov edi, eax
mov dword [esp + 0x58], 0
call fcn.0040e930
mov ebx, eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x40d303
push 0
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0042fabb
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40d2e1
cmp eax, 0xffffffff
jae 0x40d2e1
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.0042fae3
test esi, esi
je 0x40d303
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea esi, [esp + 0x30]
mov ecx, ebx
call fcn.0040dde0
mov ecx, 1
mov dword [esp + 0x58], ecx
mov al, byte [ebp]
cmp al, 0x2b
je 0x40d345
cmp al, 0x2d
je 0x40d345
cmp al, 0x30
jne 0x40d33b
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x40d331
cmp al, 0x58
jne 0x40d33b
mov dword [esp + 0x18], 2
jmp 0x40d349
mov dword [esp + 0x18], 0
jmp 0x40d349
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov eax, edx
cmp ecx, 0x10
jae 0x40d35c
lea eax, [esp + 0x34]
cmp byte [eax], 0x7f
je 0x40d3f3
mov eax, edx
cmp ecx, 0x10
jae 0x40d370
lea eax, [esp + 0x34]
cmp byte [eax], 0
jle 0x40d3f3
mov ebx, edx
cmp ecx, 0x10
jae 0x40d384
lea ebx, [esp + 0x34]
mov al, byte [ebx]
mov edi, dword [esp + 0x74]
mov esi, edi
cmp al, 0x7f
je 0x40d3dc
jmp 0x40d396
mov edi, dword [esp + 0x74]
test al, al
jle 0x40d3dc
mov ecx, esi
sub ecx, dword [esp + 0x18]
movsx eax, al
cmp eax, ecx
jae 0x40d3dc
sub esi, eax
sub edi, esi
lea eax, [edi + 1]
push eax
lea edi, [esi + ebp]
push edi
push eax
lea edx, [esi + ebp + 1]
push edx
call fcn.00430a15
inc dword [esp + 0x84]
add esp, 0x10
mov byte [edi], 0
cmp byte [ebx + 1], 0
jle 0x40d3d2
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x40d392
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x18]
test esi, esi
jle 0x40d3f9
cmp esi, edi
jbe 0x40d3f9
sub esi, edi
jmp 0x40d3fb
mov edi, dword [esp + 0x74]
jmp 0x40d3e0
xor esi, esi
mov eax, dword [eax + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x40d4af
cmp eax, 0x100
je 0x40d442
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x24]
mov eax, esi
mov esi, dword [esp + 0x74]
push edx
call fcn.0040d5c0
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
jmp 0x40d4aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
mov eax, ebp
call fcn.0040dc50
mov edx, dword [eax]
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
add esp, 0x14
push edx
add ebp, ecx
sub edi, ecx
push eax
lea ecx, [esp + 0x24]
mov eax, esi
mov esi, dword [esp + 0x74]
push ecx
call fcn.0040d5c0
mov edx, dword [eax]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x88], eax
add esp, 0xc
xor esi, esi
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
push edx
mov edx, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x28]
push ecx
movzx eax, ax
push edx
mov ecx, ebp
call fcn.0040dd30
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x78]
add esp, 0x14
mov dword [esp + 0x78], ecx
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x80], eax
push ecx
mov eax, esi
mov esi, dword [esp + 0x74]
push edi
mov dword [edx + 0x18], 0
call fcn.0040d5c0
add esp, 0xc
cmp dword [esp + 0x48], 0x10
jb 0x40d51e
mov eax, dword [esp + 0x34]
push eax
call fcn.004308f5
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00430900
add esp, 0x48
ret