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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x2f0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x70], eax
call fcn.0040932c
mov esi, dword [esi + 4]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x6c], esi
jle 0x45d9cb
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.0045d8e1
cmp eax, edi
je 0x45d9cb
mov esi, eax
lea ecx, [esp + 0x40]
call fcn.004058a3
mov eax, esi
jmp 0x45e141
lea ecx, [esp + 0x30]
call fcn.0040932c
lea ecx, [esp + 0x24]
call fcn.0040932c
cmp byte [ebp + 0x10], 0
jne 0x45da3e
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0044f7f0
pop ecx
lea edi, [esp + 0x30]
call fcn.00438ebc
lea ecx, [esp + 0x28]
call fcn.004058a3
mov eax, edi
call fcn.0044f3f0
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.00438ebc
mov eax, edi
call fcn.0044f3f0
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0045e158
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.004390fc
mov ecx, esi
call fcn.004058a3
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.0040932c
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x1c], edi
jle 0x45de7e
push 0x260
call fcn.0049c107
mov esi, eax
pop ecx
cmp esi, edi
je 0x45dae6
or dword [esi], 0xffffffff
mov byte [esi + 8], 1
xor eax, eax
mov word [esi + 0x28], ax
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x240], edi
lea eax, [esi + 0x248]
mov dword [eax], edi
mov dword [eax + 4], edi
lea ecx, [esi + 0x258]
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], edi
call fcn.0040932c
mov dword [esp + 0x18], esi
jmp 0x45daea
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x45db42
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
cmp edx, ecx
jb 0x45db0f
lea edx, [ecx + eax*4]
lea esi, [esp + 0x18]
cmp esi, edx
jb 0x45df7f
cmp eax, edi
jne 0x45db18
xor esi, esi
inc esi
jmp 0x45db2a
mov esi, dword [esp + 0x10]
add esi, esi
cmp esi, edi
jl 0x45db5b
cmp esi, 0x1fffffff
ja 0x45db5b
push 4
push esi
push ecx
call fcn.0049c9ec
add esp, 0xc
cmp eax, edi
je 0x45db5b
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]
cmp eax, edi
je 0x45db57
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0043e215
cmp dword [0x504cc0], edi
mov esi, dword [eax]
lea eax, [esi + 0x10]
mov dword [esp + 0x64], eax
mov al, byte [ebp + 0x10]
mov dword [esp + 0x28], esi
mov byte [esi + 8], al
jg 0x45db94
lea eax, [esp + 0x40]
call fcn.0046ed56
test al, al
je 0x45df89
lea ecx, [esp + 0x20]
call fcn.0040932c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0043e215
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x45dcb5
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
call fcn.0043e215
mov eax, dword [eax]
lea ecx, [ebx + 0x64]
call fcn.0045e2c4
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
call fcn.0043e215
mov eax, dword [eax]
lea ecx, [ebx + 0x64]
call fcn.0045e2c4
mov eax, dword [eax + 8]
shr eax, 1
and al, 1
mov byte [esp + 0x2f], al
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
add edi, 0x18
lea eax, [esp + 0x60]
push edi
lea esi, [ebx + 0x5c]
push eax
call fcn.0045e1f3
cmp dword [esp + 0x20], 9
pop ecx
pop ecx
je 0x45dc24
cmp dword [esp + 0x18], 0xa
jne 0x45dc37
mov edi, dword [esp + 0x28]
add edi, 0x258
lea eax, [esp + 0x60]
call fcn.00438ebc
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x64]
call fcn.0044f7f0
pop ecx
lea edi, [esp + 0x20]
call fcn.00438ebc
lea ecx, [esp + 0x74]
call fcn.004058a3
movzx eax, byte [esp + 0x2f]
neg eax
sbb eax, eax
and eax, ebx
je 0x45dc6a
add eax, 4
jmp 0x45dc6c
xor eax, eax
mov edi, dword [esp + 0x64]
lea ecx, [ebx + 0xc8]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x84]
push 0
push dword [eax + 0xc]
push 0
push dword [eax + 0x10]
lea eax, [ebx + 0x54]
call fcn.0046edd2
mov esi, eax
lea eax, [ebx + 0xa0]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00450d60
pop ecx
pop ecx
lea ecx, [esp + 0x60]
jmp 0x45de10
lea esi, [ebx + 0x88]
mov ecx, esi
call fcn.0045e2e5
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp eax, 9
je 0x45dcd3
cmp eax, 0xa
jne 0x45dd13
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0043e215
mov eax, dword [eax]
mov ecx, esi
call fcn.0045e2e5
push eax
lea eax, [esp + 0x40]
lea esi, [ebx + 0x5c]
push eax
call fcn.0045e1f3
mov edi, dword [esp + 0x30]
pop ecx
pop ecx
add edi, 0x258
call fcn.00438ebc
lea ecx, [esp + 0x3c]
call fcn.004058a3
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0043e215
mov eax, dword [eax]
lea ecx, [ebx + 0x88]
call fcn.0045e2e5
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x38]
call fcn.0045e1f3
push 0x24c
lea eax, [esp + 0xb8]
push edi
push eax
mov dword [esp + 0xbc], edi
call fcn.0049cb00
add esp, 0x14
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
push edi
push edi
push dword [esp + 0xd0]
mov dword [esp + 0xa8], eax
call fcn.004a4000
mov esi, eax
mov eax, dword [esp + 0xc8]
xor ecx, ecx
add esi, eax
adc edx, ecx
cmp dword [esp + 0x18], 6
mov dword [esp + 0xa4], edx
je 0x45dda6
cmp dword [esp + 0x18], 7
jne 0x45ddac
lea eax, [esp + 0x24]
jmp 0x45ddaf
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x20]
call fcn.00438ebc
lea eax, [ebx + 0xc8]
push eax
mov eax, edi
mov edi, dword [esp + 0x68]
push eax
xor eax, eax
push eax
push dword [esp + 0xb0]
push esi
push eax
push eax
lea eax, [esp + 0x84]
call fcn.0046edd2
mov esi, eax
lea eax, [ebx + 0xa0]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00450d60
cmp dword [esp + 0xa0], 0
pop ecx
pop ecx
je 0x45de0c
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x68]
call fcn.004058a3
test esi, esi
jne 0x45e025
cmp byte [ebx + 0x80], 0
je 0x45de3e
cmp dword [esp + 0x18], 6
jne 0x45de3e
lea ebx, [esp + 0x20]
lea esi, [esp + 0x44]
call fcn.0044e690
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x45de61
push dword [esp + 0x64]
call dword [0x504cc8]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.004058a3
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, dword [esp + 0x6c]
jl 0x45da79
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x84], eax
mov eax, esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
call fcn.0046f742
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x45e075
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x90], edi
je 0x45dee6
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x45def6
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058a3
lea esi, [esp + 0x44]
call fcn.0043a2a0
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45df48
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0043e215
mov esi, dword [eax]
cmp esi, edi
je 0x45df41
lea ecx, [esi + 0x258]
call fcn.004058a3
lea eax, [esi + 0x10]
call fcn.0046ecf5
push esi
call fcn.0049c070
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45df16
cmp dword [esp + 0xc], edi
je 0x45df5c
push dword [esp + 0xc]
call fcn.0049ca67
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058a3
lea ecx, [esp + 0x30]
call fcn.004058a3
mov esi, dword [esp + 0x3c]
jmp 0x45d9bb
push 0x80004005
call fcn.00405c3a
cmp dword [esp + 0x58], edi
je 0x45df9d
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058a3
lea esi, [esp + 0x44]
call fcn.0043a2a0
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45dfef
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0043e215
mov esi, dword [eax]
cmp esi, edi
je 0x45dfe8
lea ecx, [esi + 0x258]
call fcn.004058a3
lea eax, [esi + 0x10]
call fcn.0046ecf5
push esi
call fcn.0049c070
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45dfbd
cmp dword [esp + 0xc], edi
je 0x45e003
push dword [esp + 0xc]
call fcn.0049ca67
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058a3
lea ecx, [esp + 0x30]
call fcn.004058a3
push 0xb
pop esi
jmp 0x45d9bb
lea ecx, [esp + 0x20]
call fcn.004058a3
cmp dword [esp + 0x58], 0
je 0x45e044
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x58], 0
lea ecx, [esp + 0x50]
call fcn.004058a3
lea esi, [esp + 0x44]
call fcn.0043a2a0
lea esi, [esp + 0xc]
call fcn.0045e306
lea ecx, [esp + 0x24]
call fcn.004058a3
lea ecx, [esp + 0x30]
call fcn.004058a3
push 0xe
jmp 0x45e01f
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
call fcn.0046ef10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x90], edi
je 0x45e0a4
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x45e0b4
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058a3
lea esi, [esp + 0x44]
call fcn.0043a2a0
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45e106
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0043e215
mov esi, dword [eax]
cmp esi, edi
je 0x45e0ff
lea ecx, [esi + 0x258]
call fcn.004058a3
lea eax, [esi + 0x10]
call fcn.0046ecf5
push esi
call fcn.0049c070
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45e0d4
cmp dword [esp + 0xc], edi
je 0x45e11a
push dword [esp + 0xc]
call fcn.0049ca67
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058a3
lea ecx, [esp + 0x30]
call fcn.004058a3
lea ecx, [esp + 0x40]
call fcn.004058a3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c07b
mov esp, ebp
pop ebp
ret 0xc