Function at 0x46dc17
Capabilities:
Check if file exists

Disassembly:
push 0x184
mov eax, 0x44cda2
call fcn.0043bc61
mov dword [ebp - 0x15c], ecx
and dword [ebp - 0x160], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0xa0]
mov ecx, dword [ebp + 0xc]
call fcn.00436f3d
test eax, eax
je 0x46e3eb
test byte [0x4a2941], 8
je 0x46dc6b
push dword [ebp + 0xa0]
mov edx, 0x40f1f8
push dword [ebp + 0xc]
call fcn.0046ed9c
sub esp, 0x94
mov dword [ebp - 0x150], 0xa
lea eax, [ebp + 0x9c]
mov ecx, esp
xor edi, edi
push eax
call fcn.004312b5
lea ecx, [ebp - 0xb4]
call fcn.0046d5da
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ebp - 0x160], ebx
call fcn.00433293
test al, al
je 0x46dcde
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov esi, esp
sub esp, 0x94
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, esi
call fcn.0046d5da
call fcn.0046e43f
mov byte [ebp - 0x149], bl
test al, al
jne 0x46dce5
mov byte [ebp - 0x149], 0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], 0x401028
test eax, eax
je 0x46dd0e
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x46dd0e
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp byte [ebp - 0x149], 0
je 0x46dd45
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov esi, esp
sub esp, 0x94
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, esi
call fcn.0046d5da
mov ecx, dword [ebp - 0x15c]
call fcn.0046d87d
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov ecx, esp
push eax
call fcn.004312b5
lea ecx, [ebp - 0x148]
call fcn.00432aa1
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x144]
mov esi, eax
mov dword [ebp - fcn.0042be10], 0x401028
test ecx, ecx
je 0x46dd95
lea eax, [ebp - 0x138]
cmp ecx, eax
je 0x46dd95
push ecx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
je 0x46dddf
push dword [ebp + 0xa0]
mov edi, 0x800700b7
mov esi, 0x40f850
push 0x40f9a4
push edi
push esi
push 0x1c6
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
xor eax, eax
mov byte [ebp - 0x14b], al
mov byte [ebp - 0x14a], al
mov byte [ebp - 0x14c], al
mov byte [ebp - 0x149], al
jmp 0x46e10c
mov eax, dword [ebp + 0xa8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x150], 0x14
push 0x5c
pop esi
cmp eax, ecx
jb 0x46de73
push ecx
push 0
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp + 0x9c]
call fcn.0042c701
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x184]
and dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0042c920
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x46de6d
mov edx, dword [ebp + 0xa0]
movzx eax, word [edx + ecx*2]
cmp ax, si
jne 0x46de6d
push edx
push 0x40f9b0
mov eax, 0x8007007b
mov esi, 0x40f850
push eax
push esi
mov edi, eax
push 0x1d1
jmp 0x46ddb5
mov eax, dword [ebp + 0xa8]
mov esi, 0x40f850
cmp ecx, eax
jb 0x46df00
push eax
push 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp + 8]
call fcn.0042c701
mov eax, dword [ebp + 0xa8]
lea ecx, [ebp - 0x190]
and dword [ebp - 0x178], 0
mov dword [ebp - 0x174], eax
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x178]
push eax
call fcn.0042c920
test eax, eax
je 0x46df00
mov ecx, dword [ebp + 0xa8]
mov eax, dword [ebp + 0xc]
push 0x5c
movzx eax, word [eax + ecx*2]
pop ecx
cmp ax, cx
jne 0x46df00
push dword [ebp + 0xa0]
mov eax, 0x8007007b
push 0x40f9c4
push eax
push esi
push 0x1d6
push dword [ebp + 4]
mov edi, eax
call fcn.00464a06
add esp, 0x18
mov byte [ebp - 0x14b], 0
test edi, edi
js 0x46dfcf
push 0
sub esp, 0x94
mov dword [ebp - 0x150], 0x1e
lea eax, [ebp + 0x9c]
mov ecx, esp
push eax
call fcn.004312b5
mov edi, dword [ebp - 0x15c]
mov ecx, edi
call fcn.004331c1
test byte [0x4a2941], 8
je 0x46df58
push dword [ebp + 0xa0]
mov edx, 0x40f048
push dword [ebp + 0xc]
call fcn.0046ed9c
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x158], esp
mov esi, esp
sub esp, 0x94
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, esi
call fcn.00432aa1
sub esp, 0x94
mov byte [ebp - 4], 3
mov esi, esp
lea eax, [ebp + 8]
sub esp, 0x94
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, esi
call fcn.00432aa1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046d68a
mov ecx, dword [ebp + 4]
mov edi, eax
mov esi, 0x40f850
test edi, edi
jns 0x46dfc9
push edi
push esi
mov edx, 0x1e7
call fcn.0045e47c
mov byte [ebp - 0x14b], bl
mov byte [ebp - 0x14a], 0
test edi, edi
js 0x46e03c
sub esp, 0x94
mov dword [ebp - 0x150], 0x28
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x154], esp
mov ecx, esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, dword [ebp - 0x15c]
mov byte [ebp - 4], bl
call fcn.0046e602
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x46e036
push edi
push esi
mov edx, 0x1f0
call fcn.0045e47c
mov byte [ebp - 0x14a], bl
mov byte [ebp - 0x14c], 0
test edi, edi
js 0x46e084
sub esp, 0x94
mov dword [ebp - 0x150], 0x32
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
call fcn.0046e4f3
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x46e07e
push edi
push esi
mov edx, 0x1f9
call fcn.0045e47c
jmp 0x46e084
mov byte [ebp - 0x14c], bl
mov byte [ebp - 0x149], 0
test edi, edi
js 0x46e10c
sub esp, 0x94
mov dword [ebp - 0x150], 0x3c
lea eax, [ebp + 0x9c]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, dword [ebp - 0x15c]
call fcn.0046ec29
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x46e0cf
push edi
push esi
mov edx, 0x206
call fcn.0045e47c
jmp 0x46e10c
test byte [0x4a2941], 8
mov byte [ebp - 0x149], bl
je 0x46e0f0
push dword [ebp + 0xc]
mov edx, 0x40f148
mov ecx, 0x4a05c0
call fcn.004665e0
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, dword [ebp - 0x15c]
call fcn.0046d7a5
push edi
push dword [ebp - 0x150]
lea eax, [ebp + 0x9c]
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, dword [ebp - 0x15c]
mov byte [ebp - 4], bl
call fcn.0046e967
test edi, edi
jns 0x46e3eb
test byte [0x4a2941], 8
je 0x46e176
lea eax, [ebp - 0x20]
mov edx, 0x40ee88
push eax
push ebx
push ecx
mov ecx, 0x4a05c0
call fcn.004664cb
cmp byte [ebp - 0x14a], 0
je 0x46e22f
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 6
lea eax, [ebp + 0x9c]
mov ecx, esp
push eax
call fcn.004312b5
mov edi, dword [ebp - 0x15c]
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046e602
mov dword [ebp - 0x150], eax
test eax, eax
jns 0x46e235
push dword [ebp + 0xa0]
push 0x40f9d8
push eax
push esi
push 0x21f
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
lea eax, [ebp + 0x9c]
push dword [ebp - 0x150]
push 0xc8
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 7
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046eadc
jmp 0x46e235
mov edi, dword [ebp - 0x15c]
cmp byte [ebp - 0x14b], 0
je 0x46e2e6
test byte [0x4a2941], 8
je 0x46e260
push dword [ebp + 0xa0]
mov edx, 0x40f1e8
mov ecx, 0x4a05c0
call fcn.004665e0
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
call fcn.0046d7a5
mov dword [ebp - 0x150], eax
test eax, eax
jns 0x46e2e6
push dword [ebp + 0xa0]
push 0x40f9d8
push eax
push esi
push 0x229
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
lea eax, [ebp + 0x9c]
push dword [ebp - 0x150]
push 0xd2
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046eadc
cmp byte [ebp - 0x14c], 0
je 0x46e35c
call fcn.0046e585
mov dword [ebp - 0x150], eax
test eax, eax
jns 0x46e35c
push dword [ebp + 0xc]
push 0x40f9d8
push eax
push esi
push 0x232
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
lea eax, [ebp + 0x9c]
push dword [ebp - 0x150]
push 0xdc
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 9
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046eadc
cmp byte [ebp - 0x149], 0
je 0x46e3e9
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
call fcn.0046ec29
mov dword [ebp - 0x150], eax
test eax, eax
jns 0x46e3e9
push dword [ebp + 0xc]
push 0x40f9d8
push eax
push esi
push 0x23b
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
lea eax, [ebp + 0x9c]
push dword [ebp - 0x150]
push 0xe6
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 0xa
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0046eadc
xor bl, bl
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0x401028
test eax, eax
je 0x46e408
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x46e408
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0xa0]
mov dword [ebp + 8], 0x401558
mov dword [ebp + 0x9c], 0x401028
test eax, eax
je 0x46e435
lea ecx, [ebp + 0xac]
cmp eax, ecx
je 0x46e435
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov al, bl
call fcn.0043bc10
ret 0x128