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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475e18
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov bl, byte [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
test bl, 1
mov ebp, ecx
je 0x40d3ed
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0040e190
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x68], 0
call fcn.004112d0
add esp, 8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], 1
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
cmp eax, edx
jne 0x40d39d
lea edx, [esp + 0x10]
lea ecx, [esp + 0x70]
push edx
call fcn.004050a0
test eax, eax
je 0x40d3ab
lea eax, [esp + 0x70]
push 0
push eax
mov ecx, ebp
call fcn.0040c690
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x60], 0
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d3ca
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d3ca
call fcn.00403dc0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x40d3ed
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d3ed
call fcn.00403dc0
lea eax, [ebp + 4]
lea ecx, [esp + 0x18]
push eax
call fcn.00405e20
mov eax, dword [0x49cadc]
mov dword [esp + 0x60], 2
mov dword [esp + 0x38], eax
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 3
call fcn.00405e00
lea ecx, [esp + 0x4c]
mov byte [esp + 0x60], 4
call fcn.004063a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x60], 5
call fcn.004063a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 6
call fcn.0040ca10
push esi
mov byte [esp + 0x64], 7
call fcn.0040e990
add esp, 4
mov edi, eax
test bl, 0x10
mov dword [esp + 0x70], edi
je 0x40d4c0
push edi
mov ecx, ebp
call fcn.0040d9e0
test al, al
jne 0x40d4c0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x40d4b4
lea edx, [esp + 0x6c]
mov ecx, ebp
push edx
call fcn.0040c250
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 8
call fcn.0040ca50
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x60], 7
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d4c0
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d4c0
call fcn.00403dc0
jmp 0x40d4c0
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0040c980
cmp edi, 1
jne 0x40d5e5
test bl, 4
je 0x40d5e5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d5e5
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x70]
call fcn.00406790
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x60], 9
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d5ca
lea ecx, [esp + 0x6c]
call fcn.00403f00
mov eax, dword [esp + 0x6c]
cmp byte [eax], 0x7e
jne 0x40d5ca
inc eax
test eax, eax
jne 0x40d520
mov eax, 0x4ac030
mov edx, dword [0x4809e4]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call fcn.00403dd0
lea eax, [esp + 0x14]
mov bl, 0xa
push eax
mov byte [esp + 0x64], bl
call fcn.00416a90
add esp, 4
test eax, eax
jne 0x40d54f
mov eax, 0x4ac030
mov ecx, dword [0x4809e4]
push ecx
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00403dd0
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 0xb
call fcn.0040c980
mov eax, dword [esp + 0x10]
mov byte [esp + 0x60], bl
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d596
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d596
call fcn.00403dc0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x60], 9
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d5b5
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d5b5
call fcn.00403dc0
push 1
push 0
lea ecx, [esp + 0x20]
mov byte [ebp + 0x1c], 1
call fcn.004062d0
mov eax, dword [esp + 0x6c]
lea ecx, [eax - 0xc]
mov byte [esp + 0x60], 7
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d5e5
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d5e5
call fcn.00403dc0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40d613
mov edx, dword [esp + 0x4c]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d613
mov eax, dword [esp + 0x54]
test al, al
je 0x40d613
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x40d613
test ah, ah
je 0x40d6db
mov edx, dword [ebp]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d673
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d673
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040c250
push eax
mov ecx, ebp
mov byte [esp + 0x64], 0xc
call fcn.004047b0
mov edx, dword [esp + 0x6c]
mov byte [esp + 0x60], 7
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x40d663
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d663
call fcn.00403dc0
mov al, byte [ebp + 0x1c]
test al, al
jne 0x40d673
lea ecx, [esp + 0x38]
call fcn.0040ca10
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
call fcn.00405e20
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push edi
mov byte [esp + 0x64], 0xd
call fcn.00406030
xor esi, esi
test edi, edi
jbe 0x40d6b3
mov ecx, dword [esp + 0x30]
push 1
push esi
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x20]
push edx
call fcn.00406240
inc esi
cmp esi, edi
jb 0x40d69a
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x38]
push eax
call fcn.0040d9e0
test al, al
je 0x40d6c9
mov byte [ebp + 0x1c], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 7
call fcn.00406000
mov edi, dword [esp + 0x70]
lea ecx, [ebp + 4]
call fcn.00405fb0
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov ebx, eax
jbe 0x40d7ac
mov edi, dword [esp + 0x68]
and edi, 2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d714
mov edx, dword [0x49cadc]
mov dword [esp + 0x6c], edx
jmp 0x40d724
mov dword [esp + 0x6c], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x40d724
inc ecx
mov dword [eax - 0xc], ecx
test edi, edi
mov byte [esp + 0x60], 0xe
je 0x40d771
push 0x49caec
lea ecx, [esp + 0x70]
call fcn.004050b0
test eax, eax
je 0x40d780
push 0x49de04
lea ecx, [esp + 0x70]
call fcn.004050b0
test eax, eax
jne 0x40d771
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d8d0
dec eax
push 1
push eax
lea ecx, [ebp + 4]
call fcn.004062d0
mov ecx, dword [esp + 0x6c]
add ecx, 0xfffffff4
jmp 0x40d787
lea edx, [esp + 0x6c]
push 1
push edx
lea ecx, [ebp + 4]
call fcn.00406190
mov eax, dword [esp + 0x6c]
lea ecx, [eax - 0xc]
mov eax, dword [ecx]
mov byte [esp + 0x60], 7
cmp eax, 0xffffffff
je 0x40d79f
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d79f
call fcn.00403dc0
inc esi
cmp esi, ebx
jb 0x40d6fa
mov edi, dword [esp + 0x70]
mov bl, byte [esp + 0x68]
test bl, 0x20
je 0x40d7f5
cmp edi, 3
jne 0x40d7f5
lea edx, [esp + 0x68]
mov ecx, ebp
push edx
call fcn.0040e280
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x68], 0x13
call fcn.0040c690
mov eax, dword [esp + 0x68]
mov byte [esp + 0x60], 7
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d7f5
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d7f5
call fcn.00403dc0
test bl, 8
je 0x40d83b
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0040da70
add esp, 4
test al, al
jne 0x40d83b
mov ecx, ebp
call fcn.00405900
lea ecx, [ebp + 0x14]
call fcn.00405900
lea ecx, [ebp + 0x18]
call fcn.00405900
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jbe 0x40d83b
mov edx, dword [ebp + 0xc]
lea ecx, [edx + esi*4]
call fcn.00405900
inc esi
cmp esi, edi
jb 0x40d82b
mov eax, dword [esp + 0x50]
mov byte [esp + 0x60], 0x16
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d85b
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d85b
call fcn.00403dc0
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x60], 0x15
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d87a
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d87a
call fcn.00403dc0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0x14
call fcn.00406000
mov edx, dword [esp + 0x38]
mov byte [esp + 0x60], 2
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x40d8a8
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d8a8
call fcn.00403dc0
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00406000
mov al, 1
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
lea ecx, [esp + 0x70]
push 0
push ecx
mov ecx, ebp
call fcn.0040e190
mov esi, dword [eax]
mov byte [esp + 0x60], 0xf
call fcn.00406900
test eax, eax
je 0x40d8fe
mov edx, dword [eax]
push 0
push str.The_path__s_contains_too_many__..__
mov ecx, eax
call dword [edx + 8]
jmp 0x40d903
mov eax, str.The_path__s_contains_too_many__..__
push esi
push eax
call fcn.00442240
mov eax, dword [esp + 0x78]
add esp, 8
mov byte [esp + 0x60], 0xe
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d92d
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d92d
call fcn.00403dc0
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x60], 7
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d94c
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d94c
call fcn.00403dc0
mov edx, dword [esp + 0x50]
mov byte [esp + 0x60], 0x12
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x40d96c
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d96c
call fcn.00403dc0
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x60], 0x11
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x40d98c
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d98c
call fcn.00403dc0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0x10
call fcn.00406000
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x60], 2
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40d9b9
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x40d9b9
call fcn.00403dc0
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00406000
xor al, al
jmp 0x40d8bb