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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x44]
mov esi, ecx
mov edi, edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], edi
call fcn.004038ab
mov edi, dword [edi + 4]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x70], edi
jle 0x4507f3
lea eax, [esp + 0x44]
push eax
mov eax, esi
call fcn.00450708
cmp eax, ebx
je 0x4507f3
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.00403833
mov eax, esi
jmp 0x450f1c
lea eax, [esp + 0x34]
push eax
call fcn.004038ab
lea eax, [esp + 0x2c]
push eax
call fcn.004038ab
cmp byte [ebp + 0x10], bl
jne 0x45086f
lea eax, [esp + 0x30]
add esi, 0x50
push eax
call fcn.004432f0
pop ecx
lea edi, [esp + 0x34]
call fcn.00407ece
lea ecx, [esp + 0x30]
call fcn.00403833
mov eax, edi
call fcn.00442ef0
mov eax, dword [esp + 0x20]
add eax, 0x58
lea edi, [esp + 0x2c]
call fcn.00407ece
mov eax, edi
call fcn.00442ef0
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x30]
call fcn.00450f33
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0043164c
mov ecx, esi
call fcn.00403833
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004038ab
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x28], ebx
jle 0x450c5b
push 0x258
call fcn.00482dcf
mov edi, eax
pop ecx
cmp edi, ebx
je 0x450913
or dword [edi], 0xffffffff
mov byte [edi + 8], 1
xor eax, eax
mov word [edi + 0x28], ax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x230], ebx
mov dword [edi + 0x234], ebx
mov dword [edi + 0x238], ebx
lea eax, [edi + 0x240]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [edi + 0x250]
push eax
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], ebx
call fcn.004038ab
mov dword [esp + 0x1c], edi
jmp 0x450917
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jne 0x45096f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
cmp edx, ecx
jb 0x45093c
lea edx, [ecx + eax*4]
lea edi, [esp + 0x1c]
cmp edi, edx
jb 0x450d5c
cmp eax, ebx
jne 0x450945
xor edi, edi
inc edi
jmp 0x450957
mov edi, dword [esp + 0x14]
add edi, edi
cmp edi, ebx
jl 0x450988
cmp edi, 0x1fffffff
ja 0x450988
push 4
push edi
push ecx
call fcn.0048312a
add esp, 0xc
cmp eax, ebx
je 0x450988
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*4]
cmp eax, ebx
je 0x450984
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.0045111e
cmp dword [0x4da614], ebx
mov edi, dword [eax]
lea eax, [edi + 0x10]
mov dword [esp + 0x30], eax
mov al, byte [ebp + 0x10]
mov dword [esp + 0x38], edi
mov byte [edi + 8], al
jg 0x4509c1
lea eax, [esp + 0x44]
call fcn.0045cc08
cmp al, bl
je 0x450d66
lea eax, [esp + 0x24]
push eax
call fcn.004038ab
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
call fcn.0045111e
mov eax, dword [eax]
cmp byte [ebp + 0x10], bl
je 0x450aa2
mov ecx, dword [esp + 0x40]
mov dword [edi], eax
mov eax, dword [esp + 0x28]
call fcn.0045111e
mov eax, dword [eax]
lea ecx, [esi + 0x60]
call fcn.00451068
mov ecx, dword [eax]
mov dword [esp + 0x64], eax
mov dword [edi + 4], ecx
mov ecx, dword [eax + 4]
add eax, 0x18
push eax
lea eax, [esp + 0x70]
lea ebx, [esi + 0x58]
push eax
mov dword [esp + 0x24], ecx
call fcn.0044b440
cmp dword [esp + 0x24], 9
pop ecx
pop ecx
je 0x450a2d
cmp dword [esp + 0x1c], 0xa
jne 0x450a3c
add edi, 0x250
lea eax, [esp + 0x6c]
call fcn.00407ece
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x70]
call fcn.004432f0
pop ecx
lea edi, [esp + 0x24]
call fcn.00407ece
lea ecx, [esp + 0x78]
call fcn.00403833
mov esi, dword [esp + 0x20]
mov eax, edi
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x68]
push 0
push dword [eax + 0xc]
push 0
push dword [eax + 0x10]
lea eax, [esi + 0x50]
call fcn.0045cc84
mov edi, eax
lea eax, [esi + 0x9c]
push eax
push 1
lea ecx, [esp + 0x2c]
call fcn.00444860
pop ecx
pop ecx
lea ecx, [esp + 0x6c]
call fcn.00403833
jmp 0x450bf4
lea ebx, [esi + 0x84]
mov ecx, ebx
mov dword [esp + 0x64], ebx
call fcn.004510fd
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
cmp eax, 9
je 0x450ac4
cmp eax, 0xa
jne 0x450afe
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
call fcn.0045111e
mov eax, dword [eax]
mov ecx, ebx
call fcn.004510fd
push eax
lea eax, [esp + 0x40]
lea ebx, [esi + 0x58]
push eax
call fcn.0044b440
pop ecx
pop ecx
add edi, 0x250
call fcn.00407ece
lea ecx, [esp + 0x3c]
call fcn.00403833
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
call fcn.0045111e
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
call fcn.004510fd
push eax
lea eax, [esp + 0x6c]
push eax
lea ebx, [esp + 0x3c]
call fcn.0044b440
xor esi, esi
push 0x24c
lea eax, [esp + 0xb0]
push esi
push eax
mov dword [esp + 0xb4], esi
call fcn.00483240
add esp, 0x14
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
push esi
push esi
push dword [esp + 0xc8]
mov dword [esp + 0xa8], eax
call fcn.00489cb0
mov esi, eax
mov eax, dword [esp + 0xc0]
xor ecx, ecx
add esi, eax
mov ebx, edx
adc ebx, ecx
cmp dword [esp + 0x1c], 6
je 0x450b8c
cmp dword [esp + 0x1c], 7
jne 0x450b92
lea eax, [esp + 0x2c]
jmp 0x450b99
mov eax, dword [esp + 0x20]
add eax, 0x58
lea edi, [esp + 0x24]
call fcn.00407ece
mov eax, edi
mov edi, dword [esp + 0x30]
push eax
push ebx
push esi
xor esi, esi
push esi
push esi
lea eax, [esp + 0x7c]
call fcn.0045cc84
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, 0x9c
push eax
push 1
lea ecx, [esp + 0x2c]
call fcn.00444860
pop ecx
pop ecx
cmp dword [esp + 0x98], esi
je 0x450be7
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x68]
call fcn.00403833
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
jne 0x450e02
cmp byte [esi + 0x7c], bl
je 0x450c17
cmp dword [esp + 0x1c], 6
jne 0x450c17
lea ebx, [esp + 0x24]
lea esi, [esp + 0x48]
call fcn.004420b0
mov eax, dword [esp + 0x74]
cmp dword [eax], 0
je 0x450c3a
push dword [esp + 0x30]
call dword [0x4da61c]
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x248], eax
mov dword [ecx + 0x24c], edx
lea ecx, [esp + 0x24]
call fcn.00403833
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp eax, dword [esp + 0x70]
jl 0x4508ab
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], esi
lea eax, [esp + 0x10]
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x84], eax
mov eax, esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.0045d4da
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x450e50
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x90], ebx
je 0x450cc3
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], ebx
cmp dword [esp + 0x5c], ebx
je 0x450cd3
push dword [esp + 0x5c]
call esi
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x54]
call fcn.00403833
lea esi, [esp + 0x48]
call fcn.004326db
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x38], eax
jle 0x450d25
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0045111e
mov esi, dword [eax]
cmp esi, ebx
je 0x450d1e
lea ecx, [esi + 0x250]
call fcn.00403833
lea eax, [esi + 0x10]
call fcn.0045cba2
push esi
call fcn.00482970
pop ecx
inc edi
cmp edi, dword [esp + 0x38]
jl 0x450cf3
cmp dword [esp + 0x10], ebx
je 0x450d39
push dword [esp + 0x10]
call fcn.004831a5
pop ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00403833
lea ecx, [esp + 0x34]
call fcn.00403833
mov esi, dword [esp + 0x3c]
jmp 0x4507e3
push 0x80004005
call fcn.00403856
cmp dword [esp + 0x5c], ebx
je 0x450d7a
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x54]
call fcn.00403833
lea esi, [esp + 0x48]
call fcn.004326db
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x38], eax
jle 0x450dcc
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0045111e
mov esi, dword [eax]
cmp esi, ebx
je 0x450dc5
lea ecx, [esi + 0x250]
call fcn.00403833
lea eax, [esi + 0x10]
call fcn.0045cba2
push esi
call fcn.00482970
pop ecx
inc edi
cmp edi, dword [esp + 0x38]
jl 0x450d9a
cmp dword [esp + 0x10], ebx
je 0x450de0
push dword [esp + 0x10]
call fcn.004831a5
pop ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00403833
lea ecx, [esp + 0x34]
call fcn.00403833
push 0xb
pop esi
jmp 0x4507e3
lea ecx, [esp + 0x24]
call fcn.00403833
cmp dword [esp + 0x5c], ebx
je 0x450e1f
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x54]
call fcn.00403833
lea esi, [esp + 0x48]
call fcn.004326db
lea esi, [esp + 0x10]
call fcn.0045113f
lea ecx, [esp + 0x2c]
call fcn.00403833
lea ecx, [esp + 0x34]
call fcn.00403833
push 0xd
jmp 0x450dfc
mov eax, dword [esi + 8]
lea ecx, [esp + 0x48]
call fcn.0045cd2d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x90], ebx
je 0x450e7f
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], ebx
cmp dword [esp + 0x5c], ebx
je 0x450e8f
push dword [esp + 0x5c]
call esi
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x54]
call fcn.00403833
lea esi, [esp + 0x48]
call fcn.004326db
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x38], eax
jle 0x450ee1
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0045111e
mov esi, dword [eax]
cmp esi, ebx
je 0x450eda
lea ecx, [esi + 0x250]
call fcn.00403833
lea eax, [esi + 0x10]
call fcn.0045cba2
push esi
call fcn.00482970
pop ecx
inc edi
cmp edi, dword [esp + 0x38]
jl 0x450eaf
cmp dword [esp + 0x10], ebx
je 0x450ef5
push dword [esp + 0x10]
call fcn.004831a5
pop ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00403833
lea ecx, [esp + 0x34]
call fcn.00403833
lea ecx, [esp + 0x44]
call fcn.00403833
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048297b
mov esp, ebp
pop ebp
ret 0xc