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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2401
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.00457ed0
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x454667
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
lea esi, [eax - 1]
mov ecx, ebx
cmp edx, 0x10
jae 0x454610
lea ecx, [ebp - 0x28]
mov cl, byte [ecx + esi]
cmp cl, 0x5c
je 0x45461d
cmp cl, 0x2f
jne 0x45463e
mov eax, ebx
cmp edx, 0x10
jae 0x454627
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0052ecb7
add esp, 8
test eax, eax
je 0x454667
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
cmp edx, 0x10
jae 0x454648
lea ecx, [ebp - 0x28]
add eax, ecx
mov ecx, ebx
cmp edx, 0x10
jae 0x454654
lea ecx, [ebp - 0x28]
test eax, eax
je 0x45465a
sub eax, ecx
push 0x5c
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004013f0
push 0xffffffffffffffff
push 0
push 0x68a534
lea ecx, [ebp - 0x28]
call fcn.00404930
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x4546e7
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
lea esi, [edx - 1]
mov eax, ebx
cmp ecx, 0x10
jae 0x454692
lea eax, [ebp - 0x28]
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x45469d
cmp al, 0x2f
jne 0x4546be
mov eax, ebx
cmp ecx, 0x10
jae 0x4546a7
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0052ecb7
add esp, 8
test eax, eax
je 0x4546e7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov eax, ebx
cmp ecx, 0x10
jae 0x4546c8
lea eax, [ebp - 0x28]
add eax, edx
cmp ecx, 0x10
mov ecx, ebx
jae 0x4546d4
lea ecx, [ebp - 0x28]
test eax, eax
je 0x4546da
sub eax, ecx
push 0x5c
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004013f0
push 0xb
push 0x60c698
lea ecx, [ebp - 0x28]
call fcn.00419290
cmp dword [0x68a544], 0
je 0x45470b
lea ecx, [ebp - 0x28]
push ecx
call fcn.00457db0
add esp, 4
mov edi, 1
mov dword [ebp - 0x4c], edi
jmp 0x454720
push str._04d.bmp
lea ecx, [ebp - 0x134]
call fcn.00412170
lea edx, [ebp - 0x4c]
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00458240
add esp, 8
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00412270
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.00411660
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402dd0
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov esi, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], esi
jae 0x454783
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4547d1
shr eax, 4
not al
and al, 1
je 0x4547d1
cmp dword [ebp - 0x34], esi
jb 0x4547a9
mov edx, dword [ebp - 0x48]
push edx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5c], esi
jb 0x4548a3
mov eax, dword [ebp - 0x70]
push eax
jmp 0x45489b
mov ecx, dword [0x68d200]
test ecx, ecx
je 0x4547e8
lea edx, [ebp - 0x48]
push edx
call fcn.0049a3c0
mov bl, al
jmp 0x454867
mov eax, dword [0x68a6f8]
mov ecx, dword [0x68a6f4]
push 0x10001
push eax
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.0044b580
add esp, 0x10
mov eax, dword [ebp - 0x54]
mov ecx, dword [0x68a3ec]
push 1
push 1
push eax
mov byte [ebp - 4], 5
call fcn.004fd280
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.005a1d00
mov bl, al
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 4
test eax, eax
je 0x454867
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x454862
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x454862
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, 0x10
test bl, bl
jne 0x4548b8
cmp dword [ebp - 0x34], esi
jb 0x45487c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5c], esi
jb 0x4548a3
mov edx, dword [ebp - 0x70]
push edx
call fcn.0052d217
add esp, 4
inc edi
mov dword [ebp - 0x4c], edi
cmp edi, 0x270f
jle 0x454720
jmp 0x454961
push 0x60c6b0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0041c900
add esp, 0xc
mov esi, eax
test byte [0x68987c], 1
mov bl, 6
mov byte [ebp - 4], bl
jne 0x454905
or dword [0x68987c], 1
mov ecx, 0x689868
mov byte [ebp - 4], 7
call fcn.0047f100
push 0x5f2070
call fcn.0052e444
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0
push esi
mov ecx, 0x689868
call fcn.0047fc30
mov esi, 0x10
cmp dword [ebp - 0x78], esi
jb 0x45492d
mov edx, dword [ebp - 0x8c]
push edx
call fcn.0052d217
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x45493e
mov eax, dword [ebp - 0x48]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x5c], esi
jb 0x454961
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0052d217
add esp, 4
cmp dword [ebp - 0x14], esi
pop edi
pop esi
pop ebx
jb 0x454975
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret