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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x51f714]
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.004441b6
xor edi, edi
cmp dword [esi + 4], edi
jle 0x46c121
lea eax, [esp + 0x44]
push eax
mov eax, ebx
call fcn.0046c031
cmp eax, edi
je 0x46c121
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.00402907
mov eax, esi
jmp 0x46c85f
lea eax, [esp + 0x30]
push eax
call fcn.004441b6
lea eax, [esp + 0x24]
push eax
call fcn.004441b6
cmp byte [ebp + 0x10], 0
jne 0x46c19a
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0045c6d0
pop ecx
lea edi, [esp + 0x30]
call fcn.004432a9
lea ecx, [esp + 0x28]
call fcn.00402907
mov eax, edi
call fcn.0045c2d0
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.004432a9
mov eax, edi
call fcn.0045c2d0
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0046c876
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.004434e9
mov ecx, esi
call fcn.00402907
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.004441b6
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 0x46c590
push 0x260
call fcn.004aefb8
mov esi, eax
pop ecx
test esi, esi
je 0x46c211
or dword [esi], 0xffffffff
lea eax, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.0047e6f3
and dword [esi + 0x250], 0
and dword [esi + 0x254], 0
lea eax, [esi + 0x258]
push eax
call fcn.004441b6
jmp 0x46c213
xor esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x46c26a
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x28]
cmp edi, ecx
jb 0x46c23a
lea edi, [ecx + eax*4]
lea ebx, [esp + 0x28]
cmp ebx, edi
jb 0x46c695
test eax, eax
jne 0x46c243
xor edi, edi
inc edi
jmp 0x46c252
lea edi, [edx + edx]
test edi, edi
jl 0x46c27f
cmp edi, 0x1fffffff
ja 0x46c27f
push 4
push edi
push ecx
call fcn.004ad805
add esp, 0xc
test eax, eax
je 0x46c27f
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 0x46c27b
mov dword [eax], esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0044888c
mov edi, dword [eax]
mov bl, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x522fe4], esi
lea eax, [edi + 0x10]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], eax
mov byte [edi + 8], bl
jg 0x46c2ba
lea eax, [esp + 0x44]
call fcn.0047e78e
test al, al
je 0x46c69f
lea eax, [esp + 0x20]
push eax
call fcn.004441b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044888c
mov eax, dword [eax]
test bl, bl
je 0x46c3c8
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
call fcn.0044888c
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
add esi, 0x6c
mov ecx, esi
call fcn.0046cfe9
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.0044888c
mov eax, dword [eax]
mov ecx, esi
call fcn.0046cfe9
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.0046c8ee
lea ecx, [esp + 0x50]
push ecx
mov esi, eax
call fcn.00468fa3
cmp dword [esp + 0x44], 9
pop ecx
pop ecx
je 0x46c352
cmp dword [esp + 0x3c], 0xa
jne 0x46c361
add edi, 0x258
lea eax, [esp + 0x4c]
call fcn.004432a9
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x50]
call fcn.0045c6d0
pop ecx
lea edi, [esp + 0x20]
call fcn.004432a9
lea ecx, [esp + 0x70]
call fcn.00402907
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
je 0x46c396
lea ecx, [eax + 4]
jmp 0x46c398
xor ecx, ecx
mov eax, dword [esp + 0x18]
lea edx, [eax + 0xf0]
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.0047e80f
lea ecx, [esp + 0x4c]
jmp 0x46c50d
mov ebx, dword [esp + 0x18]
add ebx, 0x90
mov ecx, ebx
call fcn.0046d00a
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], esi
cmp esi, 9
je 0x46c3ea
cmp esi, 0xa
jne 0x46c42e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044888c
mov eax, dword [eax]
mov ecx, ebx
call fcn.0046d00a
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.0046c8ee
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.00468fa3
pop ecx
pop ecx
add edi, 0x258
call fcn.004432a9
lea ecx, [esp + 0x40]
call fcn.00402907
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.0044888c
mov eax, dword [eax]
mov ecx, ebx
call fcn.0046d00a
push eax
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x38]
call fcn.00468fa3
xor edi, edi
push 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004af810
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.004b5990
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 0x46c4c2
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x46c4d0
cmp eax, 7
jne 0x46c4d6
lea eax, [esp + 0x24]
jmp 0x46c4df
mov ecx, dword [esp + 0x18]
call fcn.0046c8ee
lea edi, [esp + 0x20]
call fcn.004432a9
mov eax, dword [esp + 0x18]
add eax, 0xf0
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.0047e80f
lea ecx, [esp + 0x48]
test eax, eax
jne 0x46c73d
call fcn.00402907
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xa8]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.0045dce0
cmp byte [esi + 0x88], 0
pop ecx
pop ecx
je 0x46c54f
cmp dword [esp + 0x3c], 6
jne 0x46c54f
lea ebx, [esp + 0x20]
lea esi, [esp + 0x50]
call fcn.0045b3f0
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x46c572
push dword [esp + 0x28]
call dword [0x522fec]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.00402907
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jl 0x46c1d5
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.0047f19e
mov dword [esp + 0x40], eax
cmp eax, edi
je 0x46c792
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x46c5fc
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46c60c
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.00402907
lea esi, [esp + 0x50]
call fcn.00444784
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46c65e
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0044888c
mov esi, dword [eax]
cmp esi, edi
je 0x46c657
lea ecx, [esi + 0x258]
call fcn.00402907
lea eax, [esi + 0x10]
call fcn.0047e72d
push esi
call fcn.004ad670
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46c62c
cmp dword [esp + 0xc], edi
je 0x46c672
push dword [esp + 0xc]
call fcn.004ad777
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00402907
lea ecx, [esp + 0x30]
call fcn.00402907
mov esi, dword [esp + 0x40]
jmp 0x46c111
push 0x80004005
call fcn.00402978
cmp dword [esp + 0x64], esi
je 0x46c6b3
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x5c]
call fcn.00402907
lea esi, [esp + 0x50]
call fcn.00444784
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x46c707
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0044888c
mov esi, dword [eax]
cmp esi, ebx
je 0x46c700
lea ecx, [esi + 0x258]
call fcn.00402907
lea eax, [esi + 0x10]
call fcn.0047e72d
push esi
call fcn.004ad670
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x46c6d5
cmp dword [esp + 0xc], ebx
je 0x46c71b
push dword [esp + 0xc]
call fcn.004ad777
pop ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00402907
lea ecx, [esp + 0x30]
call fcn.00402907
push 0xb
pop esi
jmp 0x46c111
call fcn.00402907
lea ecx, [esp + 0x20]
call fcn.00402907
cmp dword [esp + 0x64], 0
je 0x46c761
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x5c]
call fcn.00402907
lea esi, [esp + 0x50]
call fcn.00444784
lea esi, [esp + 0xc]
call fcn.0046d02b
lea ecx, [esp + 0x24]
call fcn.00402907
lea ecx, [esp + 0x30]
call fcn.00402907
push 0xe
jmp 0x46c737
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 8]
call fcn.0047e94e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], eax
cmp dword [esp + 0x88], edi
je 0x46c7c2
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46c7d2
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.00402907
lea esi, [esp + 0x50]
call fcn.00444784
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46c824
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0044888c
mov esi, dword [eax]
cmp esi, edi
je 0x46c81d
lea ecx, [esi + 0x258]
call fcn.00402907
lea eax, [esi + 0x10]
call fcn.0047e72d
push esi
call fcn.004ad670
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46c7f2
cmp dword [esp + 0xc], edi
je 0x46c838
push dword [esp + 0xc]
call fcn.004ad777
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00402907
lea ecx, [esp + 0x30]
call fcn.00402907
lea ecx, [esp + 0x44]
call fcn.00402907
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad67b
mov esp, ebp
pop ebp
ret 0xc