Function at 0x57cdd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov eax, 0x2aaaaaab
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov edi, dword [ebp + 0xc]
imul ecx
mov dword [ebp - 0x218], esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x57d022
mov eax, dword [ebx]
lea ecx, [esi + esi*2]
shl ecx, 2
mov dword [ebp - 0x220], ecx
mov edx, dword [eax + ecx]
mov ecx, dword [eax + ecx + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x224], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x57d02c
mov eax, dword [ebp - 0x224]
lea esi, [edi*8]
mov ecx, dword [ebx]
sub esi, edi
mov edx, dword [ebp - 0x220]
cmp dword [eax + esi*4 + 4], 0xffffffff
mov eax, dword [ecx + edx]
mov ecx, dword [ecx + edx + 4]
jne 0x57ce9c
sub ecx, eax
mov dword [ebp - 0x224], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x57d036
mov ecx, dword [ebp - 0x224]
jmp 0x57cff8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x57d040
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx + edx]
cmp dword [eax + esi*4 + 4], 0xffffffff
je 0x57cf57
mov ecx, dword [ecx + edx + 4]
sub ecx, eax
mov dword [ebp - 0x21c], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x57d04a
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00539180
mov eax, dword [ebp - 0x21c]
add esp, 0xc
push dword [eax + esi*4 + 4]
lea eax, [ebp - 0x214]
push dword [ebp - 0x218]
push dword [ebx + 0x24]
push str._sTemp__d__d.bmp
push 0x104
push eax
call fcn.00536b33
add esp, 0x18
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x57cf57
push edi
push dword [ebp - 0x218]
mov ecx, ebx
call fcn.0057cc10
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00539180
add esp, 0xc
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push dword [ebp - 0x218]
push dword [ebx + 0x24]
push str._sTemp__d__d.bmp
push 0x104
push eax
call fcn.00536b33
add esp, 0x18
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x57d00d
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x218]
jbe 0x57d054
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebx]
mov eax, dword [ecx + edx]
mov ecx, dword [ecx + edx + 4]
sub ecx, eax
mov dword [ebp - 0x21c], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x57d05e
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp + 0x10]
push edi
push dword [ebp - 0x218]
mov dword [ecx + esi*4 + 4], eax
mov ecx, ebx
call fcn.0057cac0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00535334
mov esp, ebp
pop ebp
ret 0xc
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
push str.invalid_vector_T__subscript
call fcn.00569015
int3