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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x456090]
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 [0x457fa0]
mov esi, 0x457fa0
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 0x40cf09
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.0040ce11
test eax, eax
je 0x40cf09
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, esi
jmp 0x40d6a1
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x24], eax
jne 0x40cf99
lea eax, [ebx + 0x54]
lea edi, [esp + 0x1c]
call fcn.00409f7f
lea edi, [esp + 0x2c]
call fcn.0040896f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
mov esi, edi
call fcn.00409d6a
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.0040896f
mov esi, edi
call fcn.00409d6a
lea esi, [esp + 0x1c]
mov ecx, ebx
call fcn.0040d6b8
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00402357
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
mov edi, dword [esp + 0x28]
mov esi, 0x457fa0
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.00402110
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 0x40d3a3
push 0x260
call fcn.00430e1b
mov edi, eax
pop ecx
test edi, edi
je 0x40d019
or dword [edi], 0xffffffff
lea eax, [edi + 0x10]
mov byte [edi + 8], 1
call fcn.00423a6c
and dword [edi + 0x250], 0
and dword [edi + 0x254], 0
lea esi, [edi + 0x258]
mov ecx, 0x457fa0
call fcn.00402110
jmp 0x40d01b
xor edi, edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x40d071
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
cmp edx, ecx
jb 0x40d040
lea edx, [ecx + eax*4]
lea esi, [esp + 0x1c]
cmp esi, edx
jb 0x40d4ad
test eax, eax
jne 0x40d049
xor esi, esi
inc esi
jmp 0x40d059
mov esi, dword [esp + 0x10]
add esi, esi
js 0x40d086
cmp esi, 0x1fffffff
ja 0x40d086
push 4
push esi
push ecx
call fcn.00430d36
add esp, 0xc
test eax, eax
je 0x40d086
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 0x40d082
mov dword [eax], edi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
call fcn.0040df7b
mov edi, dword [eax]
lea eax, [edi + 0x10]
mov dword [esp + 0x1c], eax
mov al, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x458c70], esi
mov dword [esp + 0x34], edi
mov byte [edi + 8], al
jg 0x40d0c1
lea eax, [esp + 0x40]
call fcn.00423b07
test al, al
je 0x40d4b7
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
call fcn.0040df7b
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x40d1cd
mov ecx, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
call fcn.0040df7b
mov eax, dword [eax]
lea ecx, [ebx + 0x6c]
call fcn.0040dede
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x18]
call fcn.0040df7b
mov eax, dword [eax]
lea ecx, [ebx + 0x6c]
call fcn.0040dede
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.0040d73d
lea ecx, [esp + 0x48]
call fcn.00408e26
cmp dword [esp + 0x34], 9
pop ecx
je 0x40d15a
cmp dword [esp + 0x30], 0xa
jne 0x40d169
add edi, 0x258
lea eax, [esp + 0x44]
call fcn.0040896f
lea eax, [esp + 0x44]
lea edi, [esp + 0x70]
call fcn.00409f7f
lea edi, [esp + 0x20]
call fcn.0040896f
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
call fcn.0040469f
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, ebx
je 0x40d19d
add eax, 4
jmp 0x40d19f
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.00423b88
test eax, eax
mov eax, dword [esp + 0x44]
jmp 0x40d316
lea esi, [ebx + 0x98]
mov ecx, esi
call fcn.00415be4
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
cmp eax, 9
je 0x40d1eb
cmp eax, 0xa
jne 0x40d22e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
call fcn.0040df7b
mov eax, dword [eax]
mov ecx, esi
call fcn.00415be4
push eax
mov eax, dword [esp + 0x34]
mov ecx, ebx
call fcn.0040d73d
lea ecx, [esp + 0x40]
call fcn.00408e26
pop ecx
add edi, 0x258
call fcn.0040896f
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
call fcn.0040df7b
mov eax, dword [eax]
mov ecx, esi
call fcn.00415be4
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x4c]
call fcn.00408e26
xor edi, edi
mov dword [esp], 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.00430790
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.00443850
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 0x40d2c8
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x30]
cmp eax, 6
je 0x40d2d6
cmp eax, 7
jne 0x40d2dc
lea eax, [esp + 0x24]
jmp 0x40d2e3
mov ecx, ebx
call fcn.0040d73d
lea edi, [esp + 0x20]
call fcn.0040896f
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.00423b88
test eax, eax
mov eax, dword [esp + 0x48]
jne 0x40d561
add eax, 0xfffffff0
call fcn.0040469f
mov esi, dword [esp + 0x68]
lea eax, [esi + 0xb0]
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040a7aa
add esp, 0xc
cmp byte [esi + 0x88], 0
je 0x40d35b
cmp dword [esp + 0x30], 6
jne 0x40d35b
lea ebx, [esp + 0x20]
lea esi, [esp + 0x4c]
call fcn.004096f9
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x40d37e
push dword [esp + 0x1c]
call dword [0x458c78]
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.0040469f
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 0x40cfd9
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.00424510
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x40d5c5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x40d408
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x40d418
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.0040469f
lea esi, [esp + 0x4c]
call fcn.00408ee6
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x40d470
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040df7b
mov esi, dword [eax]
cmp esi, edi
je 0x40d469
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.0040469f
lea eax, [esi + 0x10]
call fcn.00423aa6
push esi
call fcn.00430760
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x40d43b
cmp dword [esp + 0xc], edi
je 0x40d484
push dword [esp + 0xc]
call fcn.00430c47
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.0040469f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040469f
mov esi, dword [esp + 0x3c]
jmp 0x40cef6
push 0x80004005
call fcn.0040467b
cmp dword [esp + 0x60], esi
je 0x40d4cb
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.0040469f
lea esi, [esp + 0x4c]
call fcn.00408ee6
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x40d525
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0040df7b
mov esi, dword [eax]
cmp esi, ebx
je 0x40d51e
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.0040469f
lea eax, [esi + 0x10]
call fcn.00423aa6
push esi
call fcn.00430760
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x40d4f0
cmp dword [esp + 0xc], ebx
je 0x40d539
push dword [esp + 0xc]
call fcn.00430c47
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.0040469f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040469f
push 0xb
pop esi
jmp 0x40cef6
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [esp + 0x60], 0
je 0x40d58b
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.0040469f
lea esi, [esp + 0x4c]
call fcn.00408ee6
lea esi, [esp + 0xc]
call fcn.0040df9c
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040469f
push 0xe
jmp 0x40d55b
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 8]
call fcn.00423cc7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], edi
je 0x40d5f5
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x40d605
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
call fcn.0040469f
lea esi, [esp + 0x4c]
call fcn.00408ee6
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x40d65d
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040df7b
mov esi, dword [eax]
cmp esi, edi
je 0x40d656
mov eax, dword [esi + 0x258]
sub eax, 0x10
call fcn.0040469f
lea eax, [esi + 0x10]
call fcn.00423aa6
push esi
call fcn.00430760
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x40d628
cmp dword [esp + 0xc], edi
je 0x40d671
push dword [esp + 0xc]
call fcn.00430c47
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.0040469f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043076b
mov esp, ebp
pop ebp
ret 0xc