Function at 0x460350
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58daed
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x944]
mov dword fs:[0], eax
mov eax, dword [esp + 0x954]
mov esi, ecx
mov dword [0x603ce4], eax
mov eax, esi
mov ebx, 0x603d1c
call fcn.00406760
mov esi, dword [esi]
push 0x5d2c50
push esi
call fcn.004a3a26
mov esi, eax
xor ebx, ebx
add esp, 8
mov dword [esp + 0x1c], esi
cmp esi, ebx
jne 0x4603c8
xor eax, eax
jmp 0x4606bf
push 0x800
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004add60
add esp, 0xc
push 0x603dfc
lea edx, [esp + 0x1c]
push edx
call fcn.00406380
mov dword [esp + 0x94c], ebx
push esi
lea eax, [esp + 0x140]
push 0x7ff
push eax
call fcn.004a3f4f
add esp, 0xc
test eax, eax
je 0x46066f
lea ecx, [esp + 0x13c]
push 0x5d2c30
push ecx
mov byte [esp + 0x943], bl
call fcn.004a4de0
add esp, 8
cmp eax, ebx
je 0x460434
mov byte [eax], bl
mov edx, dword [0x603d14]
mov eax, dword [edx]
mov edi, dword [0x603d00]
mov ebp, eax
mov esi, dword [0x603d14]
cmp edi, ebx
je 0x460456
cmp edi, dword [0x603d00]
je 0x46045b
call fcn.004a35f3
cmp ebp, esi
je 0x4604ce
cmp edi, ebx
jne 0x4604a0
call fcn.004a35f3
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x460474
call fcn.004a35f3
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x13c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4604a4
cmp dl, bl
je 0x46049c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4604a4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x460480
xor eax, eax
jmp 0x4604a9
mov eax, dword [edi]
jmp 0x46046a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4604ce
cmp edi, ebx
jne 0x4604ca
call fcn.004a35f3
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4604c2
call fcn.004a35f3
mov ebp, dword [ebp]
jmp 0x460444
mov eax, dword [edi]
jmp 0x4604b8
mov esi, dword [0x603d14]
cmp edi, ebx
je 0x4604e0
cmp edi, dword [0x603d00]
je 0x4604e5
call fcn.004a35f3
cmp ebp, esi
jne 0x460633
mov eax, dword [0x5ff398]
mov edx, dword [eax + 0xc]
mov ecx, 0x5ff398
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x94c], 3
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.004add60
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x103
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004a5b40
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x13f], bl
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46060c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00402fe0
mov byte [esp + 0x94c], 4
lea edi, [esp + 0x20]
call fcn.00460160
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x94c], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4605b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4605c0
sub eax, edx
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, eax
call fcn.00403150
mov eax, dword [0x603d14]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00460f60
mov ecx, 1
mov edx, 0x603d00
mov esi, eax
call fcn.00461010
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov byte [esp + 0x94c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460633
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x800
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004add60
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
lea eax, [esp + 0x140]
push 0x7ff
push eax
call fcn.004a3f4f
add esp, 0xc
test eax, eax
jne 0x460412
mov esi, dword [esp + 0x1c]
push esi
call fcn.004a3dc4
add esp, 4
cmp dword [0x603d18], ebx
je 0x46068f
push 0x603d00
call fcn.004610b0
call fcn.00460b30
mov dword [esp + 0x94c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4606ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x944]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.004a314d
add esp, 0x93c
ret 4