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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x2e0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x68], eax
push edi
lea eax, [esp + 0x44]
mov ebx, ecx
mov esi, edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], esi
call fcn.0040372d
xor edi, edi
cmp dword [esi + 4], edi
jle 0x479591
lea eax, [esp + 0x44]
push eax
mov eax, ebx
call fcn.004794a1
cmp eax, edi
je 0x479591
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.004036cd
mov eax, esi
jmp 0x479ccf
lea eax, [esp + 0x30]
push eax
call fcn.0040372d
lea eax, [esp + 0x24]
push eax
call fcn.0040372d
cmp byte [ebp + 0x10], 0
jne 0x47960a
lea eax, [esp + 0x28]
lea esi, [ebx + 0x60]
push eax
call fcn.00468bf0
pop ecx
lea edi, [esp + 0x30]
call fcn.004412d2
lea ecx, [esp + 0x28]
call fcn.004036cd
mov eax, edi
call fcn.004687f0
lea eax, [ebx + 0x68]
lea edi, [esp + 0x24]
call fcn.004412d2
mov eax, edi
call fcn.004687f0
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.00479ce6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00403bf6
mov ecx, esi
call fcn.004036cd
mov esi, dword [esp + 0x2c]
xor edi, edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.0040372d
cmp dword [esi + 4], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x1c], edi
jle 0x479a00
push 0x260
call fcn.004c65a8
mov esi, eax
pop ecx
test esi, esi
je 0x479681
or dword [esi], 0xffffffff
lea eax, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.0048d8e5
and dword [esi + 0x250], 0
and dword [esi + 0x254], 0
lea eax, [esi + 0x258]
push eax
call fcn.0040372d
jmp 0x479683
xor esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x4796da
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x28]
cmp edi, ecx
jb 0x4796aa
lea edi, [ecx + eax*4]
lea ebx, [esp + 0x28]
cmp ebx, edi
jb 0x479b05
test eax, eax
jne 0x4796b3
xor edi, edi
inc edi
jmp 0x4796c2
lea edi, [edx + edx]
test edi, edi
jl 0x4796ef
cmp edi, 0x1fffffff
ja 0x4796ef
push 4
push edi
push ecx
call fcn.004c6e84
add esp, 0xc
test eax, eax
je 0x4796ef
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
test eax, eax
je 0x4796eb
mov dword [eax], esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0047a582
mov edi, dword [eax]
mov bl, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x5452e8], esi
lea eax, [edi + 0x10]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], eax
mov byte [edi + 8], bl
jg 0x47972a
lea eax, [esp + 0x44]
call fcn.0048d980
test al, al
je 0x479b0f
lea eax, [esp + 0x20]
push eax
call fcn.0040372d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0047a582
mov eax, dword [eax]
test bl, bl
je 0x479838
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
call fcn.0047a582
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
add esi, 0x78
mov ecx, esi
call fcn.0047a505
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.0047a582
mov eax, dword [eax]
mov ecx, esi
call fcn.0047a505
mov eax, dword [eax + 8]
shr eax, 1
and al, 1
mov byte [esp + 0x3b], al
mov eax, dword [ebx]
lea ecx, [ebx + 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
call fcn.00479d5e
lea ecx, [esp + 0x50]
push ecx
mov esi, eax
call fcn.00476235
cmp dword [esp + 0x44], 9
pop ecx
pop ecx
je 0x4797c2
cmp dword [esp + 0x3c], 0xa
jne 0x4797d1
add edi, 0x258
lea eax, [esp + 0x4c]
call fcn.004412d2
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x50]
call fcn.00468bf0
pop ecx
lea edi, [esp + 0x20]
call fcn.004412d2
lea ecx, [esp + 0x70]
call fcn.004036cd
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
je 0x479806
lea ecx, [eax + 4]
jmp 0x479808
xor ecx, ecx
mov eax, dword [esp + 0x18]
lea edx, [eax + 0xf8]
push edx
lea edx, [esp + 0x24]
push edx
push ecx
push 0
push dword [ebx + 0xc]
add eax, 0x60
push 0
push dword [ebx + 0x10]
mov ebx, dword [esp + 0x44]
call fcn.0048da01
lea ecx, [esp + 0x4c]
jmp 0x47997d
mov ebx, dword [esp + 0x18]
add ebx, 0x98
mov ecx, ebx
call fcn.00481a75
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], esi
cmp esi, 9
je 0x47985a
cmp esi, 0xa
jne 0x47989e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0047a582
mov eax, dword [eax]
mov ecx, ebx
call fcn.00481a75
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.00479d5e
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.00476235
pop ecx
pop ecx
add edi, 0x258
call fcn.004412d2
lea ecx, [esp + 0x40]
call fcn.004036cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0047a582
mov eax, dword [eax]
mov ecx, ebx
call fcn.00481a75
push eax
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x38]
call fcn.00476235
xor edi, edi
push 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004c6270
add esp, 0x14
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
push edi
push edi
push dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
call fcn.004cece0
mov esi, eax
mov eax, dword [esp + 0xb8]
xor ecx, ecx
add esi, eax
mov ebx, edx
adc ebx, ecx
cmp dword [esp + 0x90], edi
je 0x479932
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x479940
cmp eax, 7
jne 0x479946
lea eax, [esp + 0x24]
jmp 0x47994f
mov ecx, dword [esp + 0x18]
call fcn.00479d5e
lea edi, [esp + 0x20]
call fcn.004412d2
mov eax, dword [esp + 0x18]
add eax, 0xf8
push eax
mov eax, edi
push eax
xor eax, eax
push eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push eax
push eax
lea eax, [esp + 0x64]
call fcn.0048da01
lea ecx, [esp + 0x48]
test eax, eax
jne 0x479bad
call fcn.004036cd
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xb0]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00469fc0
cmp byte [esi + 0x94], 0
pop ecx
pop ecx
je 0x4799bf
cmp dword [esp + 0x3c], 6
jne 0x4799bf
lea ebx, [esp + 0x20]
lea esi, [esp + 0x50]
call fcn.00466770
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x4799e2
push dword [esp + 0x28]
call dword [0x5452f0]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.004036cd
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jl 0x479645
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xc]
xor edi, edi
push eax
mov eax, esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call fcn.0048e530
mov dword [esp + 0x40], eax
cmp eax, edi
je 0x479c02
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x479a6c
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x479a7c
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.004036cd
lea esi, [esp + 0x50]
call fcn.0044ebe6
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x479ace
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0047a582
mov esi, dword [eax]
cmp esi, edi
je 0x479ac7
lea ecx, [esi + 0x258]
call fcn.004036cd
lea eax, [esi + 0x10]
call fcn.0048d91f
push esi
call fcn.004c6252
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x479a9c
cmp dword [esp + 0xc], edi
je 0x479ae2
push dword [esp + 0xc]
call fcn.004c6403
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004036cd
lea ecx, [esp + 0x30]
call fcn.004036cd
mov esi, dword [esp + 0x40]
jmp 0x479581
push 0x80004005
call fcn.00403765
cmp dword [esp + 0x64], esi
je 0x479b23
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x5c]
call fcn.004036cd
lea esi, [esp + 0x50]
call fcn.0044ebe6
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x479b77
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0047a582
mov esi, dword [eax]
cmp esi, ebx
je 0x479b70
lea ecx, [esi + 0x258]
call fcn.004036cd
lea eax, [esi + 0x10]
call fcn.0048d91f
push esi
call fcn.004c6252
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x479b45
cmp dword [esp + 0xc], ebx
je 0x479b8b
push dword [esp + 0xc]
call fcn.004c6403
pop ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004036cd
lea ecx, [esp + 0x30]
call fcn.004036cd
push 0xb
pop esi
jmp 0x479581
call fcn.004036cd
lea ecx, [esp + 0x20]
call fcn.004036cd
cmp dword [esp + 0x64], 0
je 0x479bd1
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x5c]
call fcn.004036cd
lea esi, [esp + 0x50]
call fcn.0044ebe6
lea esi, [esp + 0xc]
call fcn.0047a526
lea ecx, [esp + 0x24]
call fcn.004036cd
lea ecx, [esp + 0x30]
call fcn.004036cd
push 0xe
jmp 0x479ba7
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 8]
call fcn.0048dcdd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], eax
cmp dword [esp + 0x88], edi
je 0x479c32
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x479c42
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.004036cd
lea esi, [esp + 0x50]
call fcn.0044ebe6
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x479c94
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0047a582
mov esi, dword [eax]
cmp esi, edi
je 0x479c8d
lea ecx, [esi + 0x258]
call fcn.004036cd
lea eax, [esi + 0x10]
call fcn.0048d91f
push esi
call fcn.004c6252
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x479c62
cmp dword [esp + 0xc], edi
je 0x479ca8
push dword [esp + 0xc]
call fcn.004c6403
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004036cd
lea ecx, [esp + 0x30]
call fcn.004036cd
lea ecx, [esp + 0x44]
call fcn.004036cd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c625d
mov esp, ebp
pop ebp
ret 0xc