Function at 0x437440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x120
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c2990
mov ebx, ecx
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00437a40
add esp, 4
cmp byte [ebx + 0x8d], 0
je 0x43749c
lea ecx, [ebp - 0x12c]
call fcn.0040d830
mov esi, eax
jmp 0x43749e
xor esi, esi
movzx eax, byte [ebx + 0x8c]
push edi
push esi
push eax
push 1
push dword [ebx + 0x48]
push dword [ebx + 0x28]
push dword [ebx + 0xa0]
call fcn.00437ba0
add esp, 0x1c
mov ecx, eax
mov eax, 0x31
test ecx, ecx
je 0x4374e0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x120
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
cmp byte [ebx + 0x3c], 0
mov dword [ebp - 0x24], esi
je 0x437556
mov eax, dword [ebx + 0x48]
cmp eax, 7
je 0x437556
mov cl, byte [ebx + 0x3d]
mov edx, 0x6d207c
mov esi, 0x6d2078
test cl, cl
cmove esi, edx
mov esi, dword [esi]
test esi, esi
je 0x437556
test cl, cl
mov ecx, 0x6d2084
mov edx, 0x6d2080
cmove edx, ecx
cmp dword [edx], eax
jge 0x437556
push eax
call fcn.00426390
add esp, 4
push eax
push 0x658578
push 7
push esi
call fcn.0043a780
add esp, 0x10
mov ecx, eax
mov eax, 0x32
test ecx, ecx
jne 0x4374c9
cmp byte [ebx + 0x3d], 0
mov eax, dword [ebx + 0x48]
je 0x437551
mov dword [0x6d2080], eax
jmp 0x437556
mov dword [0x6d2084], eax
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x43764c
cmp byte [ebx + 0xa5], 0
je 0x43765b
test edi, edi
mov dword [ebp - 0x2c], 0x32
mov dword [ebp - 0xe8], 0
je 0x43797e
lea ecx, [ebp - 0xe8]
push ecx
push eax
push dword [edi]
call fcn.0043aac0
test al, al
je 0x43797e
lea edi, [ebp - 0xa4]
push dword [ebx + 0x80]
push edi
call fcn.0043ad50
add esp, 8
lea esi, [ebx + 0xa8]
cmp edi, esi
je 0x437735
mov ecx, dword [ebx + 0xbc]
cmp ecx, 8
jb 0x437601
mov eax, dword [esi]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4375f7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437988
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x94]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [ebp - 0xa4]
movsd xmm1, qword [ebp - 0x9c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], 0
jmp 0x437779
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0x32
jmp 0x4377e1
mov ecx, dword [ebx + 0x84]
mov dword [ebp - 0x28], ebx
lea edx, [ecx + 1]
cmp edx, 1
ja 0x437693
cmp byte [0x6cef1a], 0
jne 0x437693
lea ecx, [ebx + 0x84]
push ecx
push 1
push eax
call fcn.004c05e0
add esp, 0xc
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x84]
mov dword [ebp - 0x20], ecx
inc ecx
xor ebx, ebx
lea esi, [ebp - 0xe8]
cmp ecx, 1
mov ecx, esi
seta bl
push eax
call fcn.0040d3c0
lea ecx, [ebp - 0xa4]
push esi
call fcn.0043ba00
mov eax, dword [edi]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x20]
push dword [ebp + 0x10]
push ebx
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push 1
push eax
call fcn.0043bd20
add esp, 0x18
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x4376ec
mov edi, 0x33
xor ebx, ebx
jmp 0x437715
push 0xf01ff
lea eax, [ebp - 0xe8]
push eax
push 6
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.004c1a60
add esp, 0x10
mov esi, dword [ebp - 0x24]
mov ebx, eax
xor al, 1
movzx eax, al
lea edi, [eax + eax + 0x32]
lea ecx, [ebp - 0xa4]
call fcn.0043c3d0
test bl, bl
mov ebx, dword [ebp - 0x28]
mov eax, edi
mov dword [ebp - 0x2c], edi
je 0x4374c9
jmp 0x4377e1
mov ecx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x24]
cmp ecx, 8
jb 0x437779
mov eax, dword [ebp - 0xa4]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x43776f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x437994
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
cmp dword [ebx + 0xb8], 0
mov edi, dword [ebp - 0xe8]
je 0x43796d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4377e1
cmp dword [eax], edi
je 0x4377e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
inc eax
cmp eax, 2
jb 0x4377c5
call fcn.0040e440
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0040f9e0
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4377d7
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
call fcn.0040e440
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x24]
movzx eax, byte [ebx + 0x8c]
mov edi, esi
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push edi
push eax
push 0
push edx
push ecx
push esi
call fcn.00437ba0
add esp, 0x1c
mov ecx, eax
mov eax, 0x35
test ecx, ecx
jne 0x4374c9
cmp byte [0x6cef19], 0
je 0x437966
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0xe8]
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 4
push eax
call fcn.0040d3c0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0xa4]
push eax
call fcn.0043ba00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x10], 5
push ecx
push 0
push 0
lea ecx, [ebp - 0xa4]
push ecx
push 0
push eax
call fcn.0043bd20
add esp, 0x18
test eax, eax
js 0x437919
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
inc eax
cmp eax, 2
mov dword [ebp - 0x38], eax
jb 0x4378b4
call fcn.0040e440
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov al, 1
mov dword [ebp - 0x24], eax
cmp dword [edx], ecx
je 0x437927
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
inc eax
cmp eax, 2
jb 0x4378f7
mov dword [ebp - 0x30], ecx
call fcn.0040e440
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040f9e0
mov ecx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
cmp dword [ebp - 0x38], 2
jb 0x437910
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov dword [eax], edx
call fcn.0040e440
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x437927
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xa4]
call fcn.0043c3d0
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 2
jb 0x437959
mov dword [ebp - 0x10], 3
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
add esp, 4
mov dword [ebp - 0x20], 0
cmp byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x2c]
je 0x4374c9
xor eax, eax
jmp 0x4374c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe8], 0
mov eax, 1
jmp 0x4374c9
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
lea ecx, [ebp - 0xa4]
call fcn.0043c3d0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
add esp, 0x1c
pop ebp
ret