Function at 0x46f505
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.004029ba
xor edi, edi
cmp dword [esi + 4], edi
jle 0x46f568
lea eax, [esp + 0x44]
push eax
mov eax, ebx
call fcn.0046f478
cmp eax, edi
je 0x46f568
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.00402964
mov eax, esi
jmp 0x46fca6
lea eax, [esp + 0x30]
push eax
call fcn.004029ba
lea eax, [esp + 0x24]
push eax
call fcn.004029ba
cmp byte [ebp + 0x10], 0
jne 0x46f5e1
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0045f2f0
pop ecx
lea edi, [esp + 0x30]
call fcn.0044607b
lea ecx, [esp + 0x28]
call fcn.00402964
mov eax, edi
call fcn.0045eef0
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.0044607b
mov eax, edi
call fcn.0045eef0
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0046fcbd
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00446332
mov ecx, esi
call fcn.00402964
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.004029ba
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 0x46f9d7
push 0x260
call fcn.004b32ab
mov esi, eax
pop ecx
test esi, esi
je 0x46f658
or dword [esi], 0xffffffff
lea eax, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.004825a9
and dword [esi + 0x250], 0
and dword [esi + 0x254], 0
lea eax, [esi + 0x258]
push eax
call fcn.004029ba
jmp 0x46f65a
xor esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x46f6b1
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x28]
cmp edi, ecx
jb 0x46f681
lea edi, [ecx + eax*4]
lea ebx, [esp + 0x28]
cmp ebx, edi
jb 0x46fadc
test eax, eax
jne 0x46f68a
xor edi, edi
inc edi
jmp 0x46f699
lea edi, [edx + edx]
test edi, edi
jl 0x46f6c6
cmp edi, 0x1fffffff
ja 0x46f6c6
push 4
push edi
push ecx
call fcn.004b1af8
add esp, 0xc
test eax, eax
je 0x46f6c6
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 0x46f6c2
mov dword [eax], esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.00470521
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 0x46f701
lea eax, [esp + 0x44]
call fcn.00482644
test al, al
je 0x46fae6
lea eax, [esp + 0x20]
push eax
call fcn.004029ba
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.00470521
mov eax, dword [eax]
test bl, bl
je 0x46f80f
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
call fcn.00470521
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
add esi, 0x6c
mov ecx, esi
call fcn.00470430
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.00470521
mov eax, dword [eax]
mov ecx, esi
call fcn.00470430
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.0046fd35
lea ecx, [esp + 0x50]
push ecx
mov esi, eax
call fcn.0046c295
cmp dword [esp + 0x44], 9
pop ecx
pop ecx
je 0x46f799
cmp dword [esp + 0x3c], 0xa
jne 0x46f7a8
add edi, 0x258
lea eax, [esp + 0x4c]
call fcn.0044607b
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x50]
call fcn.0045f2f0
pop ecx
lea edi, [esp + 0x20]
call fcn.0044607b
lea ecx, [esp + 0x70]
call fcn.00402964
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
je 0x46f7dd
lea ecx, [eax + 4]
jmp 0x46f7df
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.004826c5
lea ecx, [esp + 0x4c]
jmp 0x46f954
mov ebx, dword [esp + 0x18]
add ebx, 0x98
mov ecx, ebx
call fcn.00402287
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], esi
cmp esi, 9
je 0x46f831
cmp esi, 0xa
jne 0x46f875
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.00470521
mov eax, dword [eax]
mov ecx, ebx
call fcn.00402287
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.0046fd35
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.0046c295
pop ecx
pop ecx
add edi, 0x258
call fcn.0044607b
lea ecx, [esp + 0x40]
call fcn.00402964
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.00470521
mov eax, dword [eax]
mov ecx, ebx
call fcn.00402287
push eax
lea eax, [esp + 0x4c]
push eax
lea esi, [esp + 0x38]
call fcn.0046c295
xor edi, edi
push 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004b3b00
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.004b9cd0
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 0x46f909
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x46f917
cmp eax, 7
jne 0x46f91d
lea eax, [esp + 0x24]
jmp 0x46f926
mov ecx, dword [esp + 0x18]
call fcn.0046fd35
lea edi, [esp + 0x20]
call fcn.0044607b
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.004826c5
lea ecx, [esp + 0x48]
test eax, eax
jne 0x46fb84
call fcn.00402964
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xb0]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.00460900
cmp byte [esi + 0x88], 0
pop ecx
pop ecx
je 0x46f996
cmp dword [esp + 0x3c], 6
jne 0x46f996
lea ebx, [esp + 0x20]
lea esi, [esp + 0x50]
call fcn.0045df80
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
je 0x46f9b9
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.00402964
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jl 0x46f61c
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.00482fe2
mov dword [esp + 0x40], eax
cmp eax, edi
je 0x46fbd9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x46fa43
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46fa53
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.00402964
lea esi, [esp + 0x50]
call fcn.004475bc
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46faa5
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.00470521
mov esi, dword [eax]
cmp esi, edi
je 0x46fa9e
lea ecx, [esi + 0x258]
call fcn.00402964
lea eax, [esi + 0x10]
call fcn.004825e3
push esi
call fcn.004b1963
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46fa73
cmp dword [esp + 0xc], edi
je 0x46fab9
push dword [esp + 0xc]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00402964
lea ecx, [esp + 0x30]
call fcn.00402964
mov esi, dword [esp + 0x40]
jmp 0x46f558
push 0x80004005
call fcn.004029f2
cmp dword [esp + 0x64], esi
je 0x46fafa
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x5c]
call fcn.00402964
lea esi, [esp + 0x50]
call fcn.004475bc
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x46fb4e
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.00470521
mov esi, dword [eax]
cmp esi, ebx
je 0x46fb47
lea ecx, [esi + 0x258]
call fcn.00402964
lea eax, [esi + 0x10]
call fcn.004825e3
push esi
call fcn.004b1963
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x46fb1c
cmp dword [esp + 0xc], ebx
je 0x46fb62
push dword [esp + 0xc]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00402964
lea ecx, [esp + 0x30]
call fcn.00402964
push 0xb
pop esi
jmp 0x46f558
call fcn.00402964
lea ecx, [esp + 0x20]
call fcn.00402964
cmp dword [esp + 0x64], 0
je 0x46fba8
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x5c]
call fcn.00402964
lea esi, [esp + 0x50]
call fcn.004475bc
lea esi, [esp + 0xc]
call fcn.004704c5
lea ecx, [esp + 0x24]
call fcn.00402964
lea ecx, [esp + 0x30]
call fcn.00402964
push 0xe
jmp 0x46fb7e
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 8]
call fcn.00482804
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], eax
cmp dword [esp + 0x88], edi
je 0x46fc09
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x64], edi
je 0x46fc19
push dword [esp + 0x64]
call esi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x5c]
call fcn.00402964
lea esi, [esp + 0x50]
call fcn.004475bc
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46fc6b
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.00470521
mov esi, dword [eax]
cmp esi, edi
je 0x46fc64
lea ecx, [esi + 0x258]
call fcn.00402964
lea eax, [esi + 0x10]
call fcn.004825e3
push esi
call fcn.004b1963
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46fc39
cmp dword [esp + 0xc], edi
je 0x46fc7f
push dword [esp + 0xc]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00402964
lea ecx, [esp + 0x30]
call fcn.00402964
lea ecx, [esp + 0x44]
call fcn.00402964
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b196e
mov esp, ebp
pop ebp
ret 0xc