Function at 0x40d790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5741f0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x5e6044]
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 0x40d7fb
cmp dword [0x5eb084], 0
mov ecx, 0x5eb0a8
je 0x40d7e8
push 6
push 0x58bab0
call fcn.004027b0
xor esi, esi
jmp 0x40daea
push 0x19
push str.The_bitmap_path_is_empty_
call fcn.004027b0
xor esi, esi
jmp 0x40daea
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d835
mov ecx, 0x5eb0a8
cmp dword [0x5eb084], eax
je 0x40d824
push 0x58baf4
call fcn.0040a960
xor esi, esi
jmp 0x40daea
push str.file_is_not_exist_
call fcn.0040a960
xor esi, esi
jmp 0x40daea
lea ecx, [ebp - 0x74]
call fcn.0040a7b0
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040b750
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 0x40d878
mov eax, edx
shr eax, 3
lea esi, [eax*8 + 8]
mov eax, ecx
mov dword [ebp - 0x38], esi
test cl, 7
je 0x40d88c
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.00556636
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x34], esi
call fcn.0054f5e0
xor edi, edi
mov dword [ebp - 0x30], 4
add esp, 0x10
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x20], edi
jbe 0x40da96
mov ecx, dword [0x5f12a0]
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 0x40da87
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 0x40da58
inc dword [ebp - 0x48]
cmp dword [ebp - 0x4c], 0
jne 0x40d992
mov ecx, dword [edx]
mov eax, dword [0x5eaf5c]
cmp eax, dword [ecx + 4]
jle 0x40d95b
push 0x5eaf5c
call fcn.0054d85b
add esp, 4
cmp dword [0x5eaf5c], 0xffffffff
jne 0x40d95b
xorps xmm0, xmm0
push 0x583020
movups xmmword [0x5eaf4c], xmm0
call fcn.0054d72b
push 0x5eaf5c
call fcn.0054d81c
add esp, 8
mov esi, 0x5eaf4c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40d97f
add esi, 4
cmp esi, 0x5eaf5c
jl 0x40d960
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 0x40da30
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 [0x5eaf5c]
cmp eax, dword [ecx + 4]
jle 0x40da00
push 0x5eaf5c
call fcn.0054d85b
add esp, 4
cmp dword [0x5eaf5c], 0xffffffff
jne 0x40da00
xorps xmm0, xmm0
push 0x583020
movups xmmword [0x5eaf4c], xmm0
call fcn.0054d72b
push 0x5eaf5c
call fcn.0054d81c
add esp, 8
mov eax, dword [ebp - 0x4c]
mov esi, 0x5eaf4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x40da26
add esi, 4
cmp esi, 0x5eaf5c
jl 0x40da08
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x4c], 0
cmp edi, 0x7a1200
jae 0x40da4c
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 0x40da4f
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 0x40d900
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 0x40d8f0
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, ecx
jb 0x40d8e1
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.0041bcf0
add esp, 8
test eax, eax
jne 0x40dac9
xor esi, esi
jmp 0x40dae2
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00556631
add esp, 4
mov esi, 1
lea ecx, [ebp - 0x74]
call fcn.0040a8c0
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 0x40db0c
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