Function at 0x439176
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x4c]
sub esp, 0x4c
push 0xffffffffffffffff
push 0x4acb78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4e8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp + 0x34], 0
and dword [ebp - 4], 0
and dword [ebp + 0x28], 0
and dword [ebp + 0x2c], 0
and dword [ebp + 0x30], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 0x38]
and dword [ebp + 0x38], 0
push 0x4b9440
push dword [ebp + 0x54]
push eax
call fcn.0041cc26
add esp, 0xc
cmp dword [ebp + 0x38], 0
jne 0x4391de
xor edi, edi
inc edi
jmp 0x43923f
lea ecx, [ebp - 0x54]
call fcn.0048f8b0
mov byte [ebp - 4], 3
push ecx
push dword [ebp + 0x38]
lea ecx, [ebp - 0x54]
call fcn.0048f910
test al, al
je 0x439230
push 0x4b9448
lea ecx, [ebp - 0x54]
call fcn.0048f6b0
mov dword [ebp + 0x40], eax
mov esi, fcn.00403410
test eax, eax
je 0x439221
mov ecx, dword [eax]
xor edx, edx
cmp dword [ecx + 0x14], esi
cmovne edx, eax
test edx, edx
jne 0x43926e
xor edx, edx
test edx, edx
jne 0x43926e
push dword [ebp + 0x38]
call fcn.0041ca0d
pop ecx
xor edi, edi
inc edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004034c7
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00401a38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x54]
call fcn.004019df
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x4c
leave
ret 0xc
push str.CrashGUID
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x43928d
mov ecx, dword [eax]
cmp dword [ecx + 0x14], esi
jne 0x43928f
xor eax, eax
test eax, eax
je 0x4392dc
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
test eax, eax
je 0x4392dc
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
mov eax, dword [eax + 0x20]
add eax, 8
je 0x4392dc
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
mov ebx, dword [ebp + 0x5c]
push eax
lea ecx, [ebx + 4]
call fcn.004019b5
jmp 0x4392df
mov ebx, dword [ebp + 0x5c]
push 0x4b9460
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x4392fe
mov ecx, dword [eax]
cmp dword [ecx + 0x14], esi
jne 0x439300
xor eax, eax
test eax, eax
je 0x439331
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x48]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
mov eax, dword [eax + 0x20]
add eax, 8
je 0x439331
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebx + 8]
call fcn.004019b5
push 0x4b9468
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x439350
mov ecx, dword [eax]
cmp dword [ecx + 0x14], esi
jne 0x439352
xor eax, eax
test eax, eax
je 0x439387
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x48]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
test eax, eax
je 0x439387
mov eax, dword [eax + 0x20]
add eax, 8
je 0x439387
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebx + 0xc]
call fcn.004019b5
push 0x4b9474
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x4393a6
mov ecx, dword [eax]
cmp dword [ecx + 0x14], esi
jne 0x4393a8
xor eax, eax
test eax, eax
je 0x4393dd
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x48]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
test eax, eax
je 0x4393dd
mov eax, dword [eax + 0x20]
add eax, 8
je 0x4393dd
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebx + 0x10]
call fcn.004019b5
push 0x4b9480
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x4393fc
mov ecx, dword [eax]
cmp dword [ecx + 0x14], esi
jne 0x4393fe
xor eax, eax
test eax, eax
je 0x439433
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x48]
call fcn.0048fa00
mov ecx, eax
call fcn.0040354f
test eax, eax
je 0x439433
mov eax, dword [eax + 0x20]
add eax, 8
je 0x439433
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebx + 0x1c]
call fcn.004019b5
cmp dword [ebp + 0x58], 0
je 0x4396d6
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x44]
call fcn.0040180b
mov byte [ebp - 4], 4
push 0x5c
push dword [ebp + 0x54]
call fcn.00414bc8
pop ecx
pop ecx
test eax, eax
je 0x43948a
sub eax, dword [ebp + 0x54]
sar eax, 1
js 0x43948a
push eax
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x54]
call fcn.00402d3f
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x44]
push eax
call fcn.00402d8e
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.004019df
xor edi, edi
inc edi
mov byte [ebp - 4], 6
mov ecx, edi
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x34], edi
mov edx, dword [eax - 8]
cmp edx, edi
mov eax, dword [0x4e8960]
cmovl ecx, edx
mov dword [ebp + 0x48], eax
push ecx
sub edx, ecx
lea eax, [ebp + 0x48]
push edx
push ecx
push eax
lea ecx, [ebp + 0x44]
call fcn.00402ce3
mov ebx, 0x4b91e8
lea ecx, [ebp + 0x48]
push ebx
call fcn.00401f00
mov ecx, edi
mov esi, eax
mov dword [ebp + 0x34], ecx
and ecx, 0xfffffffe
mov dword [ebp + 0x34], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.004019df
test esi, esi
je 0x4394fa
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4394fa
push ebx
push eax
lea ecx, [ebp + 0x44]
call fcn.004026d1
push str.FileList
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.0048f860
mov eax, dword [ebp + 0x48]
mov ebx, fcn.00403410
test eax, eax
je 0x43951e
mov ecx, dword [eax]
cmp dword [ecx + 0x14], ebx
jne 0x439520
xor eax, eax
test eax, eax
jne 0x43953e
push dword [ebp + 0x38]
call fcn.0041ca0d
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x44]
call fcn.004019df
jmp 0x439233
push str.FileItem
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 0x48]
call fcn.0048f860
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x439561
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x439561
mov eax, esi
jmp 0x439563
xor eax, eax
test eax, eax
je 0x4396ca
test esi, esi
je 0x43957a
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x43957a
mov ecx, esi
jmp 0x43957c
xor ecx, ecx
push str.name
call fcn.0048f890
mov dword [ebp + 0x40], eax
test esi, esi
je 0x439598
mov ecx, dword [esi]
cmp dword [ecx + 0x14], ebx
je 0x439598
mov ecx, esi
jmp 0x43959a
xor ecx, ecx
push 0x4b9428
call fcn.0048f890
mov dword [ebp + 0x3c], eax
test esi, esi
je 0x4395b6
mov ecx, dword [esi]
cmp dword [ecx + 0x14], ebx
je 0x4395b6
mov ecx, esi
jmp 0x4395b8
xor ecx, ecx
push str.optional
call fcn.0048f890
mov ebx, eax
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4396a9
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebp + 0x48]
call fcn.00402ae6
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.004035a9
mov byte [ebp - 4], 8
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 8]
call fcn.00402d8e
lea eax, [ebp + 0x48]
push eax
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x20]
call fcn.00405797
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
push eax
call fcn.00402d8e
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x20]
call fcn.004019df
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x43963e
push eax
lea ecx, [ebp + 0x28]
call fcn.004035fa
push eax
lea ecx, [ebp + 0x10]
call fcn.004019b5
and dword [ebp + 0x14], 0
test ebx, ebx
je 0x43965b
cmp byte [ebx], 0x31
jne 0x439655
movzx eax, byte [ebx + 1]
test al, al
mov eax, edi
je 0x439658
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x439691
test al, 0x10
jne 0x439691
mov ecx, dword [ebp + 0x5c]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp]
push eax
lea ecx, [ecx + 0x98]
call fcn.00403eb1
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax]
add ecx, 0x14
call fcn.0040385c
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.004038a1
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.004019df
mov ebx, fcn.00403410
test esi, esi
je 0x4396b9
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
jne 0x4396bb
xor esi, esi
push ecx
mov ecx, esi
call fcn.0048f700
mov esi, eax
jmp 0x439552
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x44]
call fcn.004019df
push dword [ebp + 0x38]
call fcn.0041ca0d
pop ecx
xor edi, edi
jmp 0x439233