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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x455090]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x6c], eax
mov eax, dword [0x456f60]
mov esi, 0x456f60
mov ecx, esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], edi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [edi + 4], 0
mov dword [esp + 0x40], eax
jle 0x40cd85
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.0040cc8d
test eax, eax
je 0x40cd85
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, esi
jmp 0x40d51d
mov eax, dword [0x456f60]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x456f60]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x24], eax
jne 0x40ce15
lea eax, [ebx + 0x54]
lea edi, [esp + 0x1c]
call fcn.00409e3e
lea edi, [esp + 0x2c]
call fcn.004088ee
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
mov esi, edi
call fcn.00409c29
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.004088ee
mov esi, edi
call fcn.00409c29
lea esi, [esp + 0x1c]
mov ecx, ebx
call fcn.0040d534
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00402383
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
mov edi, dword [esp + 0x28]
mov esi, 0x456f60
xor eax, eax
mov ecx, esi
lea esi, [esp + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.00402131
xor eax, eax
cmp dword [edi + 4], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], eax
jle 0x40d21f
push 0x260
call fcn.0043093b
mov edi, eax
pop ecx
test edi, edi
je 0x40ce95
or dword [edi], 0xffffffff
lea eax, [edi + 0x10]
mov byte [edi + 8], 1
call fcn.00423111
and dword [edi + 0x250], 0
and dword [edi + 0x254], 0
lea esi, [edi + 0x258]
mov ecx, 0x456f60
call fcn.00402131
jmp 0x40ce97
xor edi, edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x40ceed
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
cmp edx, ecx
jb 0x40cebc
lea edx, [ecx + eax*4]
lea esi, [esp + 0x1c]
cmp esi, edx
jb 0x40d329
test eax, eax
jne 0x40cec5
xor esi, esi
inc esi
jmp 0x40ced5
mov esi, dword [esp + 0x10]
add esi, esi
js 0x40cf02
cmp esi, 0x1fffffff
ja 0x40cf02
push 4
push esi
push ecx
call fcn.00430856
add esp, 0xc
test eax, eax
je 0x40cf02
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
test eax, eax
je 0x40cefe
mov dword [eax], edi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
call fcn.0040ddda
mov edi, dword [eax]
lea eax, [edi + 0x10]
mov dword [esp + 0x1c], eax
mov al, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x457c30], esi
mov dword [esp + 0x34], edi
mov byte [edi + 8], al
jg 0x40cf3d
lea eax, [esp + 0x40]
call fcn.004231ac
test al, al
je 0x40d333
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
call fcn.0040ddda
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x40d049
mov ecx, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
call fcn.0040ddda
mov eax, dword [eax]
lea ecx, [ebx + 0x6c]
call fcn.0040dd5a
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x18]
call fcn.0040ddda
mov eax, dword [eax]
lea ecx, [ebx + 0x6c]
call fcn.0040dd5a
mov eax, dword [eax + 8]
shr eax, 1
and al, 1
mov byte [esp + 0x3b], al
mov eax, dword [esi]
lea ecx, [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
push ecx
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.0040d5b9
lea ecx, [esp + 0x48]
call fcn.00408da5
cmp dword [esp + 0x34], 9
pop ecx
je 0x40cfd6
cmp dword [esp + 0x30], 0xa
jne 0x40cfe5
add edi, 0x258
lea eax, [esp + 0x44]
call fcn.004088ee
lea eax, [esp + 0x44]
lea edi, [esp + 0x70]
call fcn.00409e3e
lea edi, [esp + 0x20]
call fcn.004088ee
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
call fcn.004046b1
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, ebx
je 0x40d019
add eax, 4
jmp 0x40d01b
xor eax, eax
lea ecx, [ebx + 0xf8]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push dword [esi + 0xc]
lea eax, [ebx + 0x54]
mov ebx, dword [esp + 0x30]
push 0
push dword [esi + 0x10]
call fcn.0042322d
test eax, eax
mov eax, dword [esp + 0x44]
jmp 0x40d192
lea esi, [ebx + 0x98]
mov ecx, esi
call fcn.00415585
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
cmp eax, 9
je 0x40d067
cmp eax, 0xa
jne 0x40d0aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
call fcn.0040ddda
mov eax, dword [eax]
mov ecx, esi
call fcn.00415585
push eax
mov eax, dword [esp + 0x34]
mov ecx, ebx
call fcn.0040d5b9
lea ecx, [esp + 0x40]
call fcn.00408da5
pop ecx
add edi, 0x258
call fcn.004088ee
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
call fcn.0040ddda
mov eax, dword [eax]
mov ecx, esi
call fcn.00415585
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x4c]
call fcn.00408da5
xor edi, edi
mov dword [esp], 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004302b0
add esp, 0xc
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
push edi
push edi
push dword [esp + 0xc8]
mov dword [esp + 0xa0], eax
call fcn.00443370
mov esi, eax
mov eax, dword [esp + 0xc0]
xor ecx, ecx
add esi, eax
adc edx, ecx
mov dword [esp + 0x9c], edx
cmp dword [esp + 0x90], edi
je 0x40d144
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x30]
cmp eax, 6
je 0x40d152
cmp eax, 7
jne 0x40d158
lea eax, [esp + 0x24]
jmp 0x40d15f
mov ecx, ebx
call fcn.0040d5b9
lea edi, [esp + 0x20]
call fcn.004088ee
add ebx, 0xf8
push ebx
mov ebx, dword [esp + 0x20]
mov eax, edi
push eax
xor eax, eax
push eax
push dword [esp + 0xa8]
push esi
push eax
push eax
lea eax, [esp + 0x64]
call fcn.0042322d
test eax, eax
mov eax, dword [esp + 0x48]
jne 0x40d3dd
add eax, 0xfffffff0
call fcn.004046b1
mov esi, dword [esp + 0x68]
lea eax, [esi + 0xb0]
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040a688
add esp, 0xc
cmp byte [esi + 0x88], 0
je 0x40d1d7
cmp dword [esp + 0x30], 6
jne 0x40d1d7
lea ebx, [esp + 0x20]
lea esi, [esp + 0x4c]
call fcn.004095ec
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x40d1fa
push dword [esp + 0x1c]
call dword [0x457c38]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004046b1
inc dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 4]
mov ebx, dword [esp + 0x68]
jl 0x40ce55
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x74]
xor edi, edi
push eax
mov eax, esi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call fcn.00423c31
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x40d441
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x40d284
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x40d294
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.004046b1
lea esi, [esp + 0x4c]
call fcn.00408e65
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x40d2ec
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040ddda
mov esi, dword [eax]
cmp esi, edi
je 0x40d2e5
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.004046b1
lea eax, [esi + 0x10]
call fcn.0042314b
push esi
call fcn.00430280
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x40d2b7
cmp dword [esp + 0xc], edi
je 0x40d300
push dword [esp + 0xc]
call fcn.00430767
pop ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004046b1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004046b1
mov esi, dword [esp + 0x3c]
jmp 0x40cd72
push 0x80004005
call fcn.0040468d
cmp dword [esp + 0x60], esi
je 0x40d347
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.004046b1
lea esi, [esp + 0x4c]
call fcn.00408e65
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x40d3a1
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0040ddda
mov esi, dword [eax]
cmp esi, ebx
je 0x40d39a
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.004046b1
lea eax, [esi + 0x10]
call fcn.0042314b
push esi
call fcn.00430280
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x40d36c
cmp dword [esp + 0xc], ebx
je 0x40d3b5
push dword [esp + 0xc]
call fcn.00430767
pop ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004046b1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004046b1
push 0xb
pop esi
jmp 0x40cd72
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [esp + 0x60], 0
je 0x40d407
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x60], 0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.004046b1
lea esi, [esp + 0x4c]
call fcn.00408e65
lea esi, [esp + 0xc]
call fcn.0040dd7b
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004046b1
push 0xe
jmp 0x40d3d7
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 8]
call fcn.0042336c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], edi
je 0x40d471
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x40d481
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.004046b1
lea esi, [esp + 0x4c]
call fcn.00408e65
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x40d4d9
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040ddda
mov esi, dword [eax]
cmp esi, edi
je 0x40d4d2
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.004046b1
lea eax, [esi + 0x10]
call fcn.0042314b
push esi
call fcn.00430280
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x40d4a4
cmp dword [esp + 0xc], edi
je 0x40d4ed
push dword [esp + 0xc]
call fcn.00430767
pop ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004046b1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043028b
mov esp, ebp
pop ebp
ret 0xc