Function at 0x40d7f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573a20
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x5e5044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x40d85b
cmp dword [0x5ea084], 0
mov ecx, 0x5ea0a8
je 0x40d848
push 6
push 0x58aa48
call fcn.004027b0
xor esi, esi
jmp 0x40db4a
push 0x19
push str.The_bitmap_path_is_empty_
call fcn.004027b0
xor esi, esi
jmp 0x40db4a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d895
mov ecx, 0x5ea0a8
cmp dword [0x5ea084], eax
je 0x40d884
push 0x58aa8c
call fcn.0040a910
xor esi, esi
jmp 0x40db4a
push str.file_is_not_exist_
call fcn.0040a910
xor esi, esi
jmp 0x40db4a
lea ecx, [ebp - 0x74]
call fcn.0040a760
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040b700
mov edx, dword [ebp - 0x68]
mov esi, edx
mov ecx, dword [ebp - 0x64]
mov eax, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
test dl, 7
je 0x40d8d8
mov eax, edx
shr eax, 3
lea esi, [eax*8 + 8]
mov eax, ecx
mov dword [ebp - 0x38], esi
test cl, 7
je 0x40d8ec
mov eax, ecx
shr eax, 3
lea eax, [eax*8 + 8]
mov dword [ebp - 0x18], eax
shr eax, 3
mov edi, eax
mov dword [ebp - 0x3c], eax
imul edi, esi
add edi, 4
push edi
mov dword [ebp - 0x40], edi
call fcn.00555e3e
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x34], esi
call fcn.0054ee00
xor edi, edi
mov dword [ebp - 0x30], 4
add esp, 0x10
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x20], edi
jbe 0x40daf6
mov ecx, dword [0x5f02a4]
mov eax, dword fs:[0x2c]
lea edx, [eax + ecx*4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
xor esi, esi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x40dae7
nop
mov edi, dword [ebp - 0x2c]
xor cl, cl
xor eax, eax
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x1c], eax
nop dword [eax]
cmp esi, edi
jae 0x40dab8
inc dword [ebp - 0x48]
cmp dword [ebp - 0x4c], 0
jne 0x40d9f2
mov ecx, dword [edx]
mov eax, dword [0x5e9f5c]
cmp eax, dword [ecx + 4]
jle 0x40d9bb
push 0x5e9f5c
call fcn.0054d07c
add esp, 4
cmp dword [0x5e9f5c], 0xffffffff
jne 0x40d9bb
xorps xmm0, xmm0
push 0x582830
movups xmmword [0x5e9f4c], xmm0
call fcn.0054cf4b
push 0x5e9f5c
call fcn.0054d03d
add esp, 8
mov esi, 0x5e9f4c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40d9df
add esi, 4
cmp esi, 0x5e9f5c
jl 0x40d9c0
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_GetPixel]
sub dword [ebp - 0x48], 1
mov edi, eax
jne 0x40da90
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [0x5e9f5c]
cmp eax, dword [ecx + 4]
jle 0x40da60
push 0x5e9f5c
call fcn.0054d07c
add esp, 4
cmp dword [0x5e9f5c], 0xffffffff
jne 0x40da60
xorps xmm0, xmm0
push 0x582830
movups xmmword [0x5e9f4c], xmm0
call fcn.0054cf4b
push 0x5e9f5c
call fcn.0054d03d
add esp, 8
mov eax, dword [ebp - 0x4c]
mov esi, 0x5e9f4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x40da86
add esi, 4
cmp esi, 0x5e9f5c
jl 0x40da68
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x4c], 0
cmp edi, 0x7a1200
jae 0x40daac
mov ecx, dword [ebp - 0x1c]
mov eax, 0x80
sar eax, cl
mov cl, byte [ebp - 0xd]
or cl, al
mov byte [ebp - 0xd], cl
jmp 0x40daaf
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
inc eax
inc esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
cmp eax, 7
jle 0x40d960
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov byte [eax + edi], cl
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp esi, eax
jb 0x40d950
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, ecx
jb 0x40d941
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, ecx
push dword [ebp - 0x40]
shr eax, 3
mov byte [esi], al
mov eax, dword [ebp - 0x3c]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x18]
shr ecx, 0xb
shr eax, 0xb
push esi
mov byte [esi + 1], cl
mov byte [esi + 3], al
call fcn.0041c330
add esp, 8
test eax, eax
jne 0x40db29
xor esi, esi
jmp 0x40db42
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00555e39
add esp, 4
mov esi, 1
lea ecx, [ebp - 0x74]
call fcn.0040a870
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40db6c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4