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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
mov eax, dword [0x502344]
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.00409513
mov esi, dword [esi + 4]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x6c], esi
jle 0x45e51c
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.0045e432
cmp eax, edi
je 0x45e51c
mov esi, eax
lea ecx, [esp + 0x40]
call fcn.004058e3
mov eax, esi
jmp 0x45ec92
lea ecx, [esp + 0x30]
call fcn.00409513
lea ecx, [esp + 0x24]
call fcn.00409513
cmp byte [ebp + 0x10], 0
jne 0x45e58f
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0044f580
pop ecx
lea edi, [esp + 0x30]
call fcn.00438b14
lea ecx, [esp + 0x28]
call fcn.004058e3
mov eax, edi
call fcn.0044f180
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.00438b14
mov eax, edi
call fcn.0044f180
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0045eca9
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00438d54
mov ecx, esi
call fcn.004058e3
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.00409513
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 0x45e9cf
push 0x260
call fcn.0049ce57
mov esi, eax
pop ecx
cmp esi, edi
je 0x45e637
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.00409513
mov dword [esp + 0x18], esi
jmp 0x45e63b
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x45e693
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
cmp edx, ecx
jb 0x45e660
lea edx, [ecx + eax*4]
lea esi, [esp + 0x18]
cmp esi, edx
jb 0x45ead0
cmp eax, edi
jne 0x45e669
xor esi, esi
inc esi
jmp 0x45e67b
mov esi, dword [esp + 0x10]
add esi, esi
cmp esi, edi
jl 0x45e6ac
cmp esi, 0x1fffffff
ja 0x45e6ac
push 4
push esi
push ecx
call fcn.0049d7d2
add esp, 0xc
cmp eax, edi
je 0x45e6ac
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 0x45e6a8
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0045eeaa
cmp dword [0x505ca8], 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 0x45e6e5
lea eax, [esp + 0x40]
call fcn.0046fc1a
test al, al
je 0x45eada
lea ecx, [esp + 0x20]
call fcn.00409513
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0045eeaa
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x45e806
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
call fcn.0045eeaa
mov eax, dword [eax]
lea ecx, [ebx + 0x68]
call fcn.0045ee15
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
call fcn.0045eeaa
mov eax, dword [eax]
lea ecx, [ebx + 0x68]
call fcn.0045ee15
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.0045ed44
cmp dword [esp + 0x20], 9
pop ecx
pop ecx
je 0x45e775
cmp dword [esp + 0x18], 0xa
jne 0x45e788
mov edi, dword [esp + 0x28]
add edi, 0x258
lea eax, [esp + 0x60]
call fcn.00438b14
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x64]
call fcn.0044f580
pop ecx
lea edi, [esp + 0x20]
call fcn.00438b14
lea ecx, [esp + 0x74]
call fcn.004058e3
movzx eax, byte [esp + 0x2f]
neg eax
sbb eax, eax
and eax, ebx
je 0x45e7bb
add eax, 4
jmp 0x45e7bd
xor eax, eax
mov edi, dword [esp + 0x64]
lea ecx, [ebx + 0xcc]
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.0046fc96
mov esi, eax
lea eax, [ebx + 0xa4]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00450af0
pop ecx
pop ecx
lea ecx, [esp + 0x60]
jmp 0x45e961
lea esi, [ebx + 0x8c]
mov ecx, esi
call fcn.0046596a
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp eax, 9
je 0x45e824
cmp eax, 0xa
jne 0x45e864
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0045eeaa
mov eax, dword [eax]
mov ecx, esi
call fcn.0046596a
push eax
lea eax, [esp + 0x40]
lea esi, [ebx + 0x5c]
push eax
call fcn.0045ed44
mov edi, dword [esp + 0x30]
pop ecx
pop ecx
add edi, 0x258
call fcn.00438b14
lea ecx, [esp + 0x3c]
call fcn.004058e3
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0045eeaa
mov eax, dword [eax]
lea ecx, [ebx + 0x8c]
call fcn.0046596a
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x38]
call fcn.0045ed44
push 0x24c
lea eax, [esp + 0xb8]
push edi
push eax
mov dword [esp + 0xbc], edi
call fcn.0049d850
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.004a4d50
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 0x45e8f7
cmp dword [esp + 0x18], 7
jne 0x45e8fd
lea eax, [esp + 0x24]
jmp 0x45e900
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x20]
call fcn.00438b14
lea eax, [ebx + 0xcc]
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.0046fc96
mov esi, eax
lea eax, [ebx + 0xa4]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00450af0
cmp dword [esp + 0xa0], 0
pop ecx
pop ecx
je 0x45e95d
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x68]
call fcn.004058e3
test esi, esi
jne 0x45eb76
cmp byte [ebx + 0x84], 0
je 0x45e98f
cmp dword [esp + 0x18], 6
jne 0x45e98f
lea ebx, [esp + 0x20]
lea esi, [esp + 0x44]
call fcn.0044e430
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x45e9b2
push dword [esp + 0x64]
call dword [0x505cb0]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.004058e3
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, dword [esp + 0x6c]
jl 0x45e5ca
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.00470592
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x45ebc6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x90], edi
je 0x45ea37
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x45ea47
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058e3
lea esi, [esp + 0x44]
call fcn.00439f1d
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45ea99
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0045eeaa
mov esi, dword [eax]
cmp esi, edi
je 0x45ea92
lea ecx, [esi + 0x258]
call fcn.004058e3
lea eax, [esi + 0x10]
call fcn.0046fbb9
push esi
call fcn.0049cdc0
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45ea67
cmp dword [esp + 0xc], edi
je 0x45eaad
push dword [esp + 0xc]
call fcn.0049cebc
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058e3
lea ecx, [esp + 0x30]
call fcn.004058e3
mov esi, dword [esp + 0x3c]
jmp 0x45e50c
push 0x80004005
call fcn.00405c7a
cmp dword [esp + 0x58], edi
je 0x45eaee
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058e3
lea esi, [esp + 0x44]
call fcn.00439f1d
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45eb40
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0045eeaa
mov esi, dword [eax]
cmp esi, edi
je 0x45eb39
lea ecx, [esi + 0x258]
call fcn.004058e3
lea eax, [esi + 0x10]
call fcn.0046fbb9
push esi
call fcn.0049cdc0
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45eb0e
cmp dword [esp + 0xc], edi
je 0x45eb54
push dword [esp + 0xc]
call fcn.0049cebc
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058e3
lea ecx, [esp + 0x30]
call fcn.004058e3
push 0xb
pop esi
jmp 0x45e50c
lea ecx, [esp + 0x20]
call fcn.004058e3
cmp dword [esp + 0x58], 0
je 0x45eb95
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x58], 0
lea ecx, [esp + 0x50]
call fcn.004058e3
lea esi, [esp + 0x44]
call fcn.00439f1d
lea esi, [esp + 0xc]
call fcn.0045eecb
lea ecx, [esp + 0x24]
call fcn.004058e3
lea ecx, [esp + 0x30]
call fcn.004058e3
push 0xe
jmp 0x45eb70
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
call fcn.0046fdd4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x90], edi
je 0x45ebf5
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x45ec05
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004058e3
lea esi, [esp + 0x44]
call fcn.00439f1d
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x45ec57
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0045eeaa
mov esi, dword [eax]
cmp esi, edi
je 0x45ec50
lea ecx, [esi + 0x258]
call fcn.004058e3
lea eax, [esi + 0x10]
call fcn.0046fbb9
push esi
call fcn.0049cdc0
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x45ec25
cmp dword [esp + 0xc], edi
je 0x45ec6b
push dword [esp + 0xc]
call fcn.0049cebc
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004058e3
lea ecx, [esp + 0x30]
call fcn.004058e3
lea ecx, [esp + 0x40]
call fcn.004058e3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049cdcb
mov esp, ebp
pop ebp
ret 0xc