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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x52472c]
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.00447480
xor edi, edi
cmp dword [esi + 4], edi
jle 0x46f8c1
lea eax, [esp + 0x44]
push eax
mov eax, ebx
call fcn.0046f7d1
cmp eax, edi
je 0x46f8c1
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.004029ae
mov eax, esi
jmp 0x46ffff
lea eax, [esp + 0x30]
push eax
call fcn.00447480
lea eax, [esp + 0x24]
push eax
call fcn.00447480
cmp byte [ebp + 0x10], 0
jne 0x46f93a
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0045f630
pop ecx
lea edi, [esp + 0x30]
call fcn.00439ecc
lea ecx, [esp + 0x28]
call fcn.004029ae
mov eax, edi
call fcn.0045f230
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.00439ecc
mov eax, edi
call fcn.0045f230
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.00470016
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0044678f
mov ecx, esi
call fcn.004029ae
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.00447480
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 0x46fd30
push 0x260
call fcn.004b38eb
mov esi, eax
pop ecx
test esi, esi
je 0x46f9b1
or dword [esi], 0xffffffff
lea eax, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.00482d71
and dword [esi + 0x250], 0
and dword [esi + 0x254], 0
lea eax, [esi + 0x258]
push eax
call fcn.00447480
jmp 0x46f9b3
xor esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x46fa0a
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x28]
cmp edi, ecx
jb 0x46f9da
lea edi, [ecx + eax*4]
lea ebx, [esp + 0x28]
cmp ebx, edi
jb 0x46fe35
test eax, eax
jne 0x46f9e3
xor edi, edi
inc edi
jmp 0x46f9f2
lea edi, [edx + edx]
test edi, edi
jl 0x46fa1f
cmp edi, 0x1fffffff
ja 0x46fa1f
push 4
push edi
push ecx
call fcn.004b2138
add esp, 0xc
test eax, eax
je 0x46fa1f
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 0x46fa1b
mov dword [eax], esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0044ba5a
mov edi, dword [eax]
mov bl, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x52804c], esi
lea eax, [edi + 0x10]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], eax
mov byte [edi + 8], bl
jg 0x46fa5a
lea eax, [esp + 0x44]
call fcn.00482e0c
test al, al
je 0x46fe3f
lea eax, [esp + 0x20]
push eax
call fcn.00447480
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044ba5a
mov eax, dword [eax]
test bl, bl
je 0x46fb68
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
call fcn.0044ba5a
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
add esi, 0x6c
mov ecx, esi
call fcn.00470789
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.0044ba5a
mov eax, dword [eax]
mov ecx, esi
call fcn.00470789
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.0047008e
lea ecx, [esp + 0x50]
push ecx
mov esi, eax
call fcn.0046c5d5
cmp dword [esp + 0x44], 9
pop ecx
pop ecx
je 0x46faf2
cmp dword [esp + 0x3c], 0xa
jne 0x46fb01
add edi, 0x258
lea eax, [esp + 0x4c]
call fcn.00439ecc
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x50]
call fcn.0045f630
pop ecx
lea edi, [esp + 0x20]
call fcn.00439ecc
lea ecx, [esp + 0x70]
call fcn.004029ae
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
je 0x46fb36
lea ecx, [eax + 4]
jmp 0x46fb38
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, 0x54
push 0
push dword [ebx + 0x10]
mov ebx, dword [esp + 0x44]
call fcn.00482e8d
lea ecx, [esp + 0x4c]
jmp 0x46fcad
mov ebx, dword [esp + 0x18]
add ebx, 0x98
mov ecx, ebx
call fcn.0047779b
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], esi
cmp esi, 9
je 0x46fb8a
cmp esi, 0xa
jne 0x46fbce
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044ba5a
mov eax, dword [eax]
mov ecx, ebx
call fcn.0047779b
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.0047008e
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.0046c5d5
pop ecx
pop ecx
add edi, 0x258
call fcn.00439ecc
lea ecx, [esp + 0x40]
call fcn.004029ae
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044ba5a
mov eax, dword [eax]
mov ecx, ebx
call fcn.0047779b
push eax
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x38]
call fcn.0046c5d5
xor edi, edi
push 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004b4140
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.004ba320
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 0x46fc62
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x46fc70
cmp eax, 7
jne 0x46fc76
lea eax, [esp + 0x24]
jmp 0x46fc7f
mov ecx, dword [esp + 0x18]
call fcn.0047008e
lea edi, [esp + 0x20]
call fcn.00439ecc
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.00482e8d
lea ecx, [esp + 0x48]
test eax, eax
jne 0x46fedd
call fcn.004029ae
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xb0]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00460c40
cmp byte [esi + 0x88], 0
pop ecx
pop ecx
je 0x46fcef
cmp dword [esp + 0x3c], 6
jne 0x46fcef
lea ebx, [esp + 0x20]
lea esi, [esp + 0x50]
call fcn.0045e2c0
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x46fd12
push dword [esp + 0x28]
call dword [0x528054]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.004029ae
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jl 0x46f975
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.0048381c
mov dword [esp + 0x40], eax
cmp eax, edi
je 0x46ff32
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x46fd9c
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46fdac
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.004029ae
lea esi, [esp + 0x50]
call fcn.00447a36
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46fdfe
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0044ba5a
mov esi, dword [eax]
cmp esi, edi
je 0x46fdf7
lea ecx, [esi + 0x258]
call fcn.004029ae
lea eax, [esi + 0x10]
call fcn.00482dab
push esi
call fcn.004b1fa3
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46fdcc
cmp dword [esp + 0xc], edi
je 0x46fe12
push dword [esp + 0xc]
call fcn.004b20aa
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004029ae
lea ecx, [esp + 0x30]
call fcn.004029ae
mov esi, dword [esp + 0x40]
jmp 0x46f8b1
push 0x80004005
call fcn.00402a1f
cmp dword [esp + 0x64], esi
je 0x46fe53
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x5c]
call fcn.004029ae
lea esi, [esp + 0x50]
call fcn.00447a36
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x46fea7
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0044ba5a
mov esi, dword [eax]
cmp esi, ebx
je 0x46fea0
lea ecx, [esi + 0x258]
call fcn.004029ae
lea eax, [esi + 0x10]
call fcn.00482dab
push esi
call fcn.004b1fa3
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x46fe75
cmp dword [esp + 0xc], ebx
je 0x46febb
push dword [esp + 0xc]
call fcn.004b20aa
pop ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004029ae
lea ecx, [esp + 0x30]
call fcn.004029ae
push 0xb
pop esi
jmp 0x46f8b1
call fcn.004029ae
lea ecx, [esp + 0x20]
call fcn.004029ae
cmp dword [esp + 0x64], 0
je 0x46ff01
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x5c]
call fcn.004029ae
lea esi, [esp + 0x50]
call fcn.00447a36
lea esi, [esp + 0xc]
call fcn.004707aa
lea ecx, [esp + 0x24]
call fcn.004029ae
lea ecx, [esp + 0x30]
call fcn.004029ae
push 0xe
jmp 0x46fed7
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 8]
call fcn.00482fcc
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], eax
cmp dword [esp + 0x88], edi
je 0x46ff62
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46ff72
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.004029ae
lea esi, [esp + 0x50]
call fcn.00447a36
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46ffc4
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0044ba5a
mov esi, dword [eax]
cmp esi, edi
je 0x46ffbd
lea ecx, [esi + 0x258]
call fcn.004029ae
lea eax, [esi + 0x10]
call fcn.00482dab
push esi
call fcn.004b1fa3
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46ff92
cmp dword [esp + 0xc], edi
je 0x46ffd8
push dword [esp + 0xc]
call fcn.004b20aa
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004029ae
lea ecx, [esp + 0x30]
call fcn.004029ae
lea ecx, [esp + 0x44]
call fcn.004029ae
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b1fae
mov esp, ebp
pop ebp
ret 0xc