Function at 0x47e400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498426
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4be4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x98], eax
cmp dword [eax + 0x10], 0
jne 0x47e45e
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x47ea4f
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.00481770
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push 7
push str.default
call fcn.00402680
mov edi, dword [ebp - 0x90]
mov byte [ebp - 4], 1
cmp edi, dword [ebp - 0x8c]
je 0x47e511
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
add edi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x90], edi
jmp 0x47e52a
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.00403190
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x47e565
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e55b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e958
push edx
push ecx
call fcn.0048c947
add esp, 8
mov ecx, dword [ebp - 0x94]
mov esi, ecx
cmp esi, edi
je 0x47e8a1
jmp 0x47e580
lea eax, [ebp - 0x88]
push eax
call fcn.00481e90
add esp, 4
push 1
push 0x49ba88
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402410
mov edx, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x64], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 3
jb 0x47e5f5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.00402410
mov edx, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [edx]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
push 1
push 0x49ba88
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00402410
mov edx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ecx, dword [ebp - 0x98]
mov eax, ecx
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x47e6b4
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402410
mov edx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47e744
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e73a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x47e796
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e78c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x47e7e8
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e7de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x47e83c
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e832
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47e95e
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47e890
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47e886
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
push edx
push ecx
call fcn.0048c947
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x47e580
mov ecx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test ecx, ecx
je 0x47ea4f
mov esi, ecx
cmp esi, edi
je 0x47e917
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x47e8f7
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47e8ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e958
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x47e8c2
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x8c]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x47ea45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47ea45
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x94]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x47ea4f
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x47e9e6
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47e9dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea3f
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x47e9b1
mov ecx, dword [ebp - 0x94]
mov eax, 0x2aaaaaab
mov edx, dword [ebp - 0x8c]
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x47ea45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47ea45
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cbb4
mov esp, ebp
pop ebp
ret