Function at 0x406e95
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x440748
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4530e4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov eax, dword [0x4530e4]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x42c]
test ecx, ecx
je 0x406dc5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x42c], 0
mov eax, dword [edi + 8]
cmp eax, 4
ja case.default.0x406dd1
jmp dword [eax*4 + 0x40705c]
cmp dword [edi + 0xc], 0
je case.default.0x406dd1
push 0x234
call fcn.0042bede
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x430], 0
test esi, esi
je 0x406e29
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push eax
push ecx
mov eax, edi
call fcn.004058a0
mov dword [esp + 0x430], 0xffffffff
lea ecx, [edi + 0x224]
jmp 0x407028
xor eax, eax
mov dword [esp + 0x430], 0xffffffff
lea ecx, [edi + 0x224]
jmp 0x407028
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.default.0x406dd1
push 0x234
call fcn.0042bede
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x430], 1
test eax, eax
je 0x406e29
push 1
push edi
mov edx, esi
mov ecx, eax
call fcn.00405bd0
mov dword [esp + 0x430], 0xffffffff
lea ecx, [edi + 0x224]
jmp 0x407028
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.default.0x406dd1
push 0x234
call fcn.0042bede
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x430], 2
test eax, eax
je 0x406e29
push 0
push edi
mov edx, esi
mov ecx, eax
call fcn.00405bd0
mov dword [esp + 0x430], 0xffffffff
lea ecx, [edi + 0x224]
jmp 0x407028
cmp dword [edi + 0x21c], 0
je case.default.0x406dd1
push 0x234
call fcn.0042bede
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x430], 3
test esi, esi
je 0x406e29
mov edx, dword [edi + 0x220]
mov eax, dword [edi + 0x21c]
push edx
push eax
mov eax, edi
call fcn.00405e80
mov dword [esp + 0x430], 0xffffffff
lea ecx, [edi + 0x224]
jmp 0x407028
lea ebx, [edi + 0x224]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.default.0x406dd1
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x226]
push edx
mov word [esp + 0x228], cx
call fcn.0042d060
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0042d060
add esp, 0xc
push 0x5c
push ebx
call fcn.0042c19e
mov esi, eax
add esp, 8
test esi, esi
je 0x406fe4
mov edx, esi
sub edx, edi
sub edx, 0x224
sar edx, 1
inc edx
push edx
lea eax, [esp + 0x220]
push ebx
push eax
call fcn.0042c1ca
lea eax, [esi + 2]
lea edx, [esp + 0x20]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406fd3
jmp 0x406fff
lea edx, [esp + 0x14]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406ff0
push 0x234
call fcn.0042bede
mov esi, eax
add esp, 4
test esi, esi
je 0x407022
mov eax, edi
lea ebx, [esp + 0x21c]
call fcn.00405f30
jmp 0x407024
xor eax, eax
lea ecx, [esp + 0x14]
push eax
mov dword [edi + 0x42c], eax
call fcn.00406980
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0042bb57
add esp, 0x428
ret