Function at 0x4370d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52c000
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x74]
push ebp
call dword [0x5313c0]
test eax, eax
je 0x43732b
call fcn.004683e0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x43732b
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5759e8
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ebx
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5759e8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.00402550
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x24]
mov byte [esp + 0x70], 2
call fcn.00463890
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4371a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x34
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00508d80
add esp, 0xc
mov byte [esp + 0x68], 3
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00469760
test eax, eax
je 0x4372d1
cmp dword [esp + 0x24], 0
je 0x4372d1
mov edx, dword [esp + 0x38]
lea edi, [esi + 4]
call fcn.00402760
lea edi, [esi + 8]
lea eax, [esp + 0x18]
call fcn.00401dd0
lea edi, [esi + 0xc]
lea eax, [esp + 0x14]
call fcn.00401dd0
mov edx, dword [esp + 0x3c]
lea edi, [esi + 0x10]
call fcn.00402760
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], edx
mov eax, dword [eax + 8]
xor ebp, ebp
cmp eax, ebp
je 0x437252
cmp dword [ebx - 0xc], ebp
jl 0x437252
push eax
push ebx
call fcn.0050016e
add esp, 8
cmp eax, ebp
je 0x437252
sub eax, ebx
sar eax, 1
jne 0x437252
mov dword [esi + 0x1c], 1
jmp 0x437255
mov dword [esi + 0x1c], ebp
mov ecx, dword [esp + 0x74]
push ebp
push ebp
push 3
push ebp
push 1
push 0x80
push ecx
mov dword [esi + 0x14], 1
mov dword [esi + 0x24], ebp
call dword [0x531334]
mov edi, eax
cmp edi, 0xffffffff
je 0x4372a3
lea edx, [esp + 0x1c]
push edx
push ebp
xor eax, eax
push ebp
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [0x5312dc]
push edi
call dword [0x531378]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x2c]
call fcn.00430780
lea ecx, [esp + 0x14]
call fcn.00402660
lea ecx, [esp + 0x18]
call fcn.00402660
mov eax, 1
jmp 0x43732d
lea esi, [esp + 0x2c]
call fcn.00430780
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4372fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43731f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8