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

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x2d4], eax
push ebx
mov ebx, dword [esp + 0x2e8]
push ebp
mov ebp, dword [esp + 0x2f0]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ebp
call fcn.0040522e
push eax
lea ecx, [esp + 0x40]
call fcn.004028b4
xor esi, esi
cmp dword [ebx + 4], esi
jle 0x40dc37
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0040db44
mov esi, eax
test esi, esi
jne 0x40e1b2
call fcn.0040522e
push eax
lea ecx, [esp + 0x3c]
call fcn.004028b4
call fcn.0040522e
push eax
lea ecx, [esp + 0x30]
call fcn.004028b4
cmp byte [esp + 0x2fc], 0
jne 0x40dccc
lea edx, [edi + 0x60]
lea ecx, [esp + 0x18]
call fcn.0040ad8c
push eax
lea ecx, [esp + 0x3c]
call fcn.00409e7f
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [esp + 0x38]
call fcn.0040ab6c
push esi
mov ecx, edi
call fcn.0040e296
push eax
lea ecx, [esp + 0x30]
call fcn.00409e7f
lea ecx, [esp + 0x2c]
call fcn.0040ab6c
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040e203
lea ecx, [esp + 0x2c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402b67
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.0040522e
push eax
lea ecx, [esp + 0x68]
call fcn.004028b4
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x30], esi
cmp dword [ebx + 4], esi
jle 0x40e0a1
push 0x260
call fcn.00424dc3
mov ebx, eax
pop ecx
or dword [ebx], 0xffffffff
lea ecx, [ebx + 0x10]
mov byte [ebx + 8], 1
call fcn.0041c152
mov dword [ebx + 0x250], esi
mov dword [ebx + 0x254], esi
call fcn.0040522e
push eax
lea ecx, [ebx + 0x258]
call fcn.004028b4
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
cmp ecx, esi
jne 0x40dda0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
cmp eax, edx
jb 0x40dd6c
lea eax, [edx + esi*4]
lea ebp, [esp + 0x4c]
cmp ebp, eax
jb 0x40e1f8
test esi, esi
jne 0x40dd73
inc esi
jmp 0x40dd82
lea esi, [ecx + ecx]
test esi, esi
js 0x40ddb6
cmp esi, 0x1fffffff
ja 0x40ddb6
push 4
push esi
push edx
call fcn.0042a23d
add esp, 0xc
test eax, eax
je 0x40ddb6
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
jmp 0x40dda4
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
test eax, eax
je 0x40ddb1
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push esi
call fcn.00409706
mov bl, byte [esp + 0x2fc]
mov ebp, dword [eax]
lea eax, [esp + 0x3c]
push eax
mov byte [ebp + 8], bl
call fcn.0041c1f1
test al, al
je 0x40e1f4
call fcn.0040522e
push eax
lea ecx, [esp + 0x18]
call fcn.004028b4
push esi
test bl, bl
je 0x40def5
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.00409706
push esi
mov ecx, ebx
mov eax, dword [eax]
mov dword [ebp], eax
call fcn.00409706
lea ecx, [edi + 0x78]
push dword [eax]
call fcn.0040e9b5
mov dword [esp + 0x40], eax
mov ecx, ebx
mov eax, esi
push eax
call fcn.00409706
lea ecx, [edi + 0x78]
push dword [eax]
call fcn.0040e9b5
mov esi, dword [esp + 0x40]
mov ecx, edi
mov eax, dword [eax + 8]
shr eax, 1
and eax, 0xffffff01
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov dword [ebp + 4], eax
lea eax, [esi + 0x18]
mov ebx, dword [esi + 4]
push eax
push ebx
call fcn.0040e296
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.004098cf
pop ecx
cmp ebx, 9
je 0x40de70
cmp ebx, 0xa
jne 0x40de80
lea eax, [esp + 0x34]
push eax
lea ecx, [ebp + 0x258]
call fcn.00409e7f
lea edx, [esp + 0x34]
lea ecx, [esp + 0x50]
call fcn.0040ad8c
push eax
lea ecx, [esp + 0x18]
call fcn.00409e7f
mov ecx, dword [esp + 0x50]
lea ecx, [ecx - 0x10]
call fcn.004052ff
xor eax, eax
cmp byte [esp + 0x44], al
cmovne eax, edi
test eax, eax
je 0x40deb5
lea ecx, [eax + 4]
jmp 0x40deb7
xor ecx, ecx
lea eax, [edi + 0xf8]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push dword [esi + 0xc]
lea eax, [edi + 0x60]
push 0
push dword [esi + 0x10]
lea esi, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.0041c28a
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
test eax, eax
jne 0x40e1db
call fcn.004052ff
jmp 0x40e02e
mov ecx, dword [esp + 0x2c]
call fcn.00409706
lea ecx, [edi + 0x98]
push dword [eax]
call fcn.00409fc2
mov ebx, dword [eax + 4]
cmp ebx, 9
je 0x40df18
cmp ebx, 0xa
jne 0x40df5c
mov ecx, dword [esp + 0x28]
push esi
call fcn.00409706
lea ecx, [edi + 0x98]
push dword [eax]
call fcn.00409fc2
push eax
push ebx
mov ecx, edi
call fcn.0040e296
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.004098cf
pop ecx
push eax
lea ecx, [ebp + 0x258]
call fcn.00409e7f
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x28]
push esi
call fcn.00409706
lea ecx, [edi + 0x98]
push dword [eax]
call fcn.00409fc2
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.004098cf
mov dword [esp], 0x250
lea eax, [esp + 0x94]
push 0
push eax
call fcn.00425780
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x9c]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0xac]
xor ecx, ecx
add ecx, dword [esp + 0xb0]
mov dword [esp + 0x40], ecx
adc edx, 0
mov dword [esp + 0x44], edx
test eax, eax
je 0x40dfd3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 6
je 0x40dfe7
cmp ebx, 7
je 0x40dfe7
push ebx
mov ecx, edi
call fcn.0040e296
jmp 0x40dfeb
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409e7f
lea eax, [edi + 0xf8]
push eax
lea eax, [esp + 0x18]
push eax
xor eax, eax
lea ecx, [ebp + 0x10]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push eax
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0041c28a
lea ecx, [esi - 0x10]
test eax, eax
jne 0x40e1db
call fcn.004052ff
lea esi, [ebp + 0x10]
lea eax, [edi + 0xb0]
mov dl, 1
push eax
lea ecx, [esp + 0x18]
call fcn.0040b60a
cmp byte [edi + 0x94], 0
pop ecx
je 0x40e05d
cmp ebx, 6
jne 0x40e05d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
call fcn.00409766
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
je 0x40e079
push esi
call dword [0x449a40]
mov dword [ebp + 0x250], eax
mov dword [ebp + 0x254], edx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov eax, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + 4]
jl 0x40dd0c
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x2f0]
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x1c]
push ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.0041cdbb
mov esi, eax
test esi, esi
jne 0x40e0ee
push dword [ebp + 8]
lea ecx, [esp + 0x5c]
call fcn.0041c5e5
mov esi, eax
cmp dword [esp + 0x88], 0
je 0x40e10d
push dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x88], 0
cmp dword [esp + 0x6c], 0
je 0x40e123
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x64]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [esp + 0x58]
call fcn.0040972d
mov ebp, dword [esp + 0x20]
xor edi, edi
test ebp, ebp
jle 0x40e17a
push edi
lea ecx, [esp + 0x20]
call fcn.00409706
mov ebx, dword [eax]
test ebx, ebx
je 0x40e175
mov ecx, dword [ebx + 0x258]
sub ecx, 0x10
call fcn.004052ff
lea ecx, [ebx + 0x10]
call fcn.0041c18f
push 0x260
push ebx
call fcn.00424bad
pop ecx
pop ecx
inc edi
cmp edi, ebp
jl 0x40e142
cmp dword [esp + 0x1c], 0
je 0x40e190
push dword [esp + 0x1c]
call fcn.0042a238
and dword [esp + 0x20], 0
pop ecx
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x2e4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x2dc
ret 0x10
call fcn.004052ff
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004052ff
push 0xe
pop esi
jmp 0x40e10d
push 0xb
jmp 0x40e1ee
push 0x80004005
call fcn.00405068
int3