Function at 0x436c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca78f
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5036e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push 0x4d3590
push eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x54], 0
call fcn.0041f730
add esp, 0xc
mov ecx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x436c81
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.0040eb20
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
lea esi, [ecx + 2]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x90]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x436d03
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436cf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43716c
push edx
push ecx
call fcn.004776ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x90], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436d79
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0040b030
jmp 0x43714f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push edi
mov word [eax], cx
lea ecx, [ebp - 0x40]
call fcn.004136b0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], edi
jb 0x436db0
mov edi, dword [edi]
mov dword [ebp - 0x44], edi
jmp 0x436db3
mov edi, dword [ebp - 0x44]
cmp eax, 1
jb 0x436e77
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0x44]
mov edi, eax
sub edi, 0x4d7fe4
cmp word [eax], 0x2e
mov dword [ebp - 0x48], eax
jne 0x436e0e
mov edx, 0x2e
mov ecx, 1
mov esi, edx
mov eax, 0x4d7fe4
cmp dx, si
ja 0x436e08
cmp ecx, 1
je 0x436e1a
movzx edx, word [eax + edi + 2]
add eax, 2
dec ecx
movzx esi, word [eax]
cmp dx, si
jae 0x436df0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
cmp eax, ecx
je 0x436e72
sub eax, 2
sub edi, 2
jmp 0x436dd3
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x44]
sar eax, 1
cmp eax, 0xffffffff
je 0x436e72
mov ecx, dword [ebp - 0x4c]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.0042cd00
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x436e6a
mov ecx, eax
call fcn.0040b030
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x30], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x74]
call fcn.0040b030
mov esi, 2
xor edi, edi
nop dword [eax]
mov eax, dword [edi + 0x5022a0]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
or esi, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], esi
lea ecx, [ebp - 0x74]
mov esi, dword [ebp - 0x5c]
xor eax, eax
mov word [ebp - 0x74], ax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.00426b00
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x436ec4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x74]
push eax
call fcn.0040eb20
push 1
push 0x4d3590
lea ecx, [ebp - 0x74]
call fcn.0040eb20
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x74]
push eax
call fcn.0040eb20
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, esi
or eax, 0xc
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x48]
mov ecx, edx
mov byte [ebp - 4], 5
lea eax, [ecx + 2]
mov dword [ebp - 0x4c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436f45
sub ecx, dword [ebp - 0x4c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.0040eb20
xor ecx, ecx
or esi, 0x1c
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x50], xmm1
movups xmmword [ebp - 0x9c], xmm0
cmp edx, 8
jb 0x436fd2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43716c
push edx
push ecx
call fcn.004776ff
movups xmm0, xmmword [ebp - 0x9c]
add esp, 8
movq xmm1, qword [ebp - 0x50]
mov edx, dword [ebp - 0x78]
movq qword [ebp - 0x18], xmm1
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x43701c
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437012
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43716c
push edx
push ecx
call fcn.004776ff
add esp, 8
mov edx, dword [ebp - 0x60]
xor eax, eax
and esi, 0xfffffffb
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x437074
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43706a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43716c
push edx
push ecx
call fcn.004776ff
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4370ad
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
add edi, 4
mov word [eax], cx
cmp edi, 0x14
jb 0x436e80
mov esi, dword [ebp - 0x58]
xor eax, eax
movups xmm0, xmmword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov word [ebp - 0x28], ax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmp edx, 8
jb 0x43714f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43710f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437171
push edx
push ecx
call fcn.004776ff
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 8
jb 0x43714f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437145
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437176
push edx
push ecx
call fcn.004776ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004779c3
mov esp, ebp
pop ebp
ret
call fcn.0049c66a
call fcn.0049c66a
call fcn.0049c66a
int3