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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x436cd9
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, ebx
and eax, 0xf
sub eax, 0
je 0x436ccc
sub eax, 1
je 0x436ca4
cmp ecx, 1
jbe 0x436cdb
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x436cdb
mov eax, dword [0x5645d8]
mov edx, dword [0x5645d4]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x436cdb
mov edi, dword [edx + ecx*4]
test edi, edi
je 0x436cdb
cmp eax, edi
jbe 0x436cdb
mov edi, dword [edx + edi*4]
jmp 0x436cdd
cmp ecx, 1
jbe 0x436cdb
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 4]
test edi, edi
je 0x436cdb
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
jbe 0x436cdb
mov edi, dword [ecx + edi*4]
jmp 0x436cdd
cmp ecx, 1
jbe 0x436cdb
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 4]
jmp 0x436cdd
xor ebx, ebx
xor edi, edi
call fcn.0048d260
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, edi
mov byte [ebp - 0x25], 0
mov byte [0x56388c], 1
call fcn.0048faa0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x436d3b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436d20
test al, 0x10
jne 0x436d20
mov ecx, edi
call fcn.0048f530
mov byte [ebp - 0x25], 1
mov eax, dword [edi - 8]
add edi, 0xfffffff8
cmp eax, 0xffffffff
je 0x436d3b
dec eax
mov dword [edi], eax
test eax, eax
jg 0x436d3b
push edi
call fcn.00501c9e
add esp, 4
cmp byte [ebp - 0x25], 0
jne 0x436e5a
cmp dword [esi + 0xc], 2
jbe 0x436d84
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 8]
test edi, edi
jle 0x436d84
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436d7d
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov dword [ecx + edi*4], 0
cmp dword [esi + 0xc], 3
jbe 0x436dc3
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0xc]
test edi, edi
jle 0x436dc3
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436dbc
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov dword [ecx + edi*4], 0
cmp dword [esi + 0xc], 4
jbe 0x436e02
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
test edi, edi
jle 0x436e02
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436dfb
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov dword [ecx + edi*4], 0
cmp dword [esi + 0xc], 5
jbe 0x4370a2
mov eax, dword [esi + 0x10]
mov esi, dword [eax + 0x14]
test esi, esi
jle 0x4370a2
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, esi
ja 0x436e42
lea eax, [esi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov dword [ecx + esi*4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [0x563898]
addsd xmm0, qword [0x5455f8]
mulsd xmm0, qword [0x545600]
call fcn.00521c7b
push 0
push 0x2710
push edx
push eax
call fcn.004e70e0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp dword [esi + 0xc], 2
jbe 0x436ef9
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, 0x3e8
mov edi, dword [eax + 8]
movzx eax, word [ebp - 0x24]
div ecx
movzx eax, word [ebp - 0x22]
imul ecx, edx, 0x64
add ecx, eax
movzx eax, word [ebp - 0x1e]
imul ecx, ecx, 0x64
add ecx, eax
mov dword [ebp - 0x10], ecx
test edi, edi
jle 0x436ef9
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436ef3
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + edi*4], eax
cmp dword [esi + 0xc], 3
jbe 0x436f50
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0xc]
movzx eax, word [ebp - 0x1c]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x1a]
add ecx, eax
movzx eax, word [ebp - 0x18]
imul ecx, ecx, 0x64
add ecx, eax
mov dword [ebp - 0x10], ecx
test edi, edi
jle 0x436f50
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436f4a
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + edi*4], eax
cmp dword [esi + 0xc], 4
jbe 0x436f96
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
mov eax, dword [0x5638a4]
mov dword [ebp - 0x10], eax
test edi, edi
jle 0x436f96
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436f90
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + edi*4], eax
cmp dword [esi + 0xc], 5
jbe 0x436fdc
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x14]
mov eax, dword [0x5638a8]
mov dword [ebp - 0x10], eax
test edi, edi
jle 0x436fdc
mov eax, dword [0x5645d8]
mov ecx, dword [0x5645d4]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x436fd6
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov ecx, dword [0x5645d4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + edi*4], eax
test bl, 0xf0
je 0x436ffc
cmp dword [esi + 0xc], 6
jbe 0x436fef
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
jmp 0x436ff1
xor ecx, ecx
mov edx, dword [0x5638a0]
call fcn.00491fc0
cmp dword [esi + 0xc], 7
jbe 0x437057
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x1c], 0
je 0x437057
mov edx, dword [0x5645d4]
xor ebx, ebx
lea edi, [ebx + 0x20]
lea eax, [ebx + 8]
cmp dword [esi + 0xc], eax
jbe 0x43704c
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x43704c
mov eax, dword [0x5645d8]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x43704c
mov eax, dword [edx + ecx*4]
test eax, eax
jle 0x43704c
mov edx, eax
mov ecx, ebx
call fcn.00436b60
mov edx, dword [0x5645d4]
add edi, 4
inc ebx
cmp edi, 0x30
jl 0x437016
jmp 0x437082
xor ebx, ebx
lea edi, [ebx + 0x20]
nop dword [eax]
lea eax, [ebx + 8]
cmp dword [esi + 0xc], eax
jbe 0x437079
mov eax, dword [esi + 0x10]
mov edx, dword [edi + eax]
test edx, edx
jle 0x437079
mov ecx, ebx
call fcn.00436b60
add edi, 4
inc ebx
cmp edi, 0x30
jl 0x437060
mov eax, dword [0x5603c4]
xor esi, esi
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
test edi, edi
jle 0x4370a2
mov ecx, dword [ebx + esi*4]
call fcn.00459340
inc esi
cmp esi, edi
jl 0x437095
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e66f2
mov esp, ebp
pop ebp
ret