Function at 0x1002bf19
Capabilities:
Get file attributes
Get file size

Disassembly:
push 0x57c
mov eax, 0x1017af20
call fcn.1014f0f3
mov ebx, ecx
mov dword [ebp - 0x550], ebx
cmp dword [ebx + 0x28], 0
mov esi, dword [ebp + 8]
je 0x1002bf40
xor eax, eax
jmp 0x1002c3b7
test esi, esi
je 0x1002c3bf
lea eax, [ebx + 0x8c]
push eax
call fcn.100933a6
push esi
lea ecx, [ebp - 0x51c]
call fcn.100074d4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x51c]
push 0
push 0x10189c1c
call fcn.10008447
cmp eax, 0xffffffff
jne 0x1002c066
xor edi, edi
lea ecx, [ebp - 0x51c]
push edi
push 0x1018d79c
call fcn.10008447
cmp eax, 0xffffffff
jne 0x1002c066
push edi
push 0x10189b88
lea ecx, [ebp - 0x51c]
call fcn.10008447
cmp eax, 0xffffffff
jne 0x1002c066
push 0x104
lea eax, [ebp - 0x518]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1002c066
xor eax, eax
mov edi, 0x100
push eax
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 3
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.1015ad6d
push edi
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x314]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call fcn.1015ad6d
add esp, 0x48
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1015bcdf
lea eax, [ebp - 0x114]
push eax
call fcn.1015a500
add esp, 0x1c
lea ecx, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10005a3a
cmp dword [ebp + 0xc], 0
jbe 0x1002c0b2
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002c0b2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x1002c0b2
mov ecx, dword [ebp - 0x51c]
lea ecx, [ecx - 0x10]
call fcn.10001e9f
jmp 0x1002bf39
mov esi, dword [ebx + 0x34]
mov edi, dword [ebp - 0x51c]
call fcn.10024e5d
neg esi
sbb esi, esi
xor ecx, ecx
mov eax, dword [eax + 8]
and esi, 0x1000
add esi, 0x2010
push esi
push ecx
push ecx
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
lea esi, [ebx + 0x8c]
mov dword [esi], eax
test eax, eax
je 0x1002c09f
lea ecx, [ebp - 0x588]
push ecx
push 0x18
pop ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x1002c110
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esi], 0
jmp 0x1002c09f
xor edi, edi
lea eax, [ebp - 0x51c]
inc edi
lea ecx, [ebx + 0x98]
push eax
mov dword [ebx + 0x18], edi
call fcn.10010572
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x1002c13b
mov dword [ebx + 0x24], edi
movzx eax, word [ebp - 0x576]
mov dword [ebx + 8], eax
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x1002c36d
cmp dword [esi], 0
je 0x1002c36d
lea ecx, [ebp - 0x538]
call fcn.100199fa
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x538]
call fcn.1001a39e
lea eax, [ebp - 0x570]
push eax
push 0x18
pop eax
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x1002c35e
cmp dword [esi], 0
je 0x1002c35e
push dword [esi]
push dword [ebp - 0x534]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
test edi, edi
je 0x1002c35e
mov eax, dword [ebp - 0x568]
mov ecx, dword [ebp - 0x56c]
push eax
push ecx
push dword [ebp - 0x534]
mov dword [ebp - 0x520], ecx
mov dword [ebp - 0x53c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x524], eax
test eax, eax
jne 0x1002c1fb
push edi
push dword [ebp - 0x534]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1002c35e
lea ecx, [ebp - 0x54c]
call fcn.100199fa
push dword [ebp - 0x534]
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x54c]
call fcn.1001a39e
push dword [ebp - 0x524]
push dword [ebp - 0x548]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x558], eax
test eax, eax
jne 0x1002c25c
push edi
push dword [ebp - 0x534]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x524]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1002c353
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp - 0x534]
push dword [ebp - 0x53c]
push dword [ebp - 0x520]
push eax
push eax
push dword [ebp - 0x548]
call dword [sym.imp.GDI32.dll_BitBlt]
and dword [ebp - 0x528], 0
mov eax, dword [ebp - 0x520]
test eax, eax
jle 0x1002c324
mov ebx, dword [ebp - 0x528]
mov dword [ebp - 0x554], edi
mov edi, dword [ebp - 0x53c]
xor esi, esi
test edi, edi
jle 0x1002c30d
push esi
push ebx
push dword [ebp - 0x548]
call dword [sym.imp.GDI32.dll_GetPixel]
push 0x18
pop ecx
mov dword [ebp - 0x528], eax
cmp word [ebp - 0x55e], cx
jne 0x1002c2e3
cmp dword [0x101db2e0], 0
jne 0x1002c2e3
push eax
call fcn.1002ca8b
jmp 0x1002c2eb
push 0
push eax
call fcn.1002c9e3
cmp dword [ebp - 0x528], eax
je 0x1002c302
push eax
push esi
push ebx
push dword [ebp - 0x548]
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, edi
jl 0x1002c2b2
mov eax, dword [ebp - 0x520]
inc ebx
cmp ebx, eax
jl 0x1002c2ac
mov ebx, dword [ebp - 0x550]
mov edi, dword [ebp - 0x554]
lea esi, [ebx + 0x8c]
push dword [ebp - 0x558]
push dword [ebp - 0x548]
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [ebp - 0x534]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x524]
mov dword [esi], eax
lea ecx, [ebp - 0x54c]
call fcn.10019b61
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0
call fcn.10019b61
cmp word [ebp - 0x576], 0x20
jb 0x1002c381
push dword [ebx + 0x3c]
push dword [esi]
call fcn.1002d3af
mov ecx, ebx
call fcn.1002e1a0
lea esi, [ebx + 0x90]
push esi
call fcn.100933a6
and dword [esi], 0
lea esi, [ebx + 0x94]
push esi
call fcn.100933a6
mov ecx, dword [ebp - 0x51c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.10001e9f
xor eax, eax
inc eax
call fcn.1014f0a2
ret 8
call fcn.100197b1
int3