Function at 0x491d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov byte [esp + 0x16], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov esi, eax
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x491d7a
cmp al, 9
jne 0x491d7d
inc esi
jmp 0x491d70
cmp byte [esi], 0x2a
jne 0x491e51
jmp 0x491d90
push 0x4e4144
inc esi
call fcn.0049be50
push 9
push eax
push esi
call fcn.004babb4
add esp, 0x10
test eax, eax
jne 0x491db4
add esi, 9
mov byte [esp + 0x17], al
jmp 0x491e13
push str._a_53
call fcn.0049be50
push 9
push eax
push esi
call fcn.004babb4
add esp, 0x10
test eax, eax
jne 0x491dd8
add esi, 9
mov byte [esp + 0x15], 1
jmp 0x491e13
push 0x4e4190
call fcn.0049be50
push 0xa
push eax
push esi
call fcn.004babb4
add esp, 0x10
test eax, eax
jne 0x491e13
add esi, 0xa
mov ecx, esi
lea ebx, [esp + 0x18]
call fcn.0048fdd0
test al, al
jne 0x491e0b
mov byte [esp + 0x14], 1
jmp 0x491e13
and dword [esp + 0x18], 0xffffff
xor edi, edi
cmp esi, edi
je 0x491e51
mov dl, byte [esi]
test dl, dl
je 0x491e51
nop
mov ecx, 0x4d9558
mov al, 0x20
cmp dl, al
je 0x491e3d
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x491e27
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x491e20
jmp 0x491e51
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x491e3d
cmp al, 9
je 0x491e3d
cmp al, 0x2a
je 0x491d90
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
je 0x492150
cmp byte [esp + 0x14], 0
jne 0x492150
mov esi, dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x34]
push eax
push 0x18
push ebx
call esi
test eax, eax
je 0x492150
mov eax, dword [esp + 0xb0]
cmp eax, edi
je 0x491ee1
lea ecx, [esp + 0x50]
push ecx
push 0x18
push eax
call esi
test eax, eax
je 0x492150
cmp byte [esp + 0x15], 0
je 0x491ec3
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
cmp eax, ebp
jl 0x491eed
mov ebp, eax
jmp 0x491eed
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jl 0x491ed7
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x3c]
add ebp, dword [esp + 0x58]
jmp 0x491eed
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push 0x2c
lea ecx, [esp + 0x80]
push edi
push ecx
call fcn.004c16a0
mov edx, dword [esp + 0x28]
add esp, 0xc
push edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x80], 0x28
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], 0x200001
call edi
mov esi, eax
test esi, esi
je 0x492150
push 0
call edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x49210a
push 0
call edi
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x49210e
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x24], eax
test eax, eax
je 0x49210e
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov dword [esp + 0x4c], eax
test eax, eax
je 0x49210e
mov ecx, dword [esp + 0xb4]
push ecx
push ebx
call edi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4920fc
cmp dword [esp + 0x18], 0xffffffff
je 0x49203e
and dword [esp + 0x18], 0xffffff
je 0x49203e
mov ecx, dword [esp + 0x18]
xor ebx, ebx
call fcn.0042ecd0
mov edx, dword [esp + 0x1c]
xor ecx, ecx
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebp
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
test edi, edi
je 0x492013
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
test ebx, ebx
je 0x492013
push edi
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x492018
mov byte [esp + 0x14], 1
test ebx, ebx
je 0x492024
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x49202f
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [esp + 0x14], 0
mov ebx, dword [esp + 0x20]
jne 0x4920fc
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4920d4
mov edi, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4920fc
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0xcc0020
push 0
push 0
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push ecx
push edx
push 0
push 0
push esi
call edi
test eax, eax
je 0x4920fc
cmp byte [esp + 0x15], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push ebx
push eax
push ecx
je 0x4920ae
mov edx, dword [esp + 0x6c]
push 0
push edx
jmp 0x4920b5
mov edx, dword [esp + 0x70]
push edx
push 0
push esi
call edi
test eax, eax
sete al
test al, al
jne 0x4920fc
mov edx, dword [esp + 0x4c]
push edx
push esi
mov byte [esp + 0x1e], 1
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x49210e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push ebx
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4920fc
mov byte [esp + 0x16], 1
mov edx, dword [esp + 0x4c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x49210e
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call edi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x492132
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49212f
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
test ebx, ebx
je 0x492149
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x492146
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
mov ebx, dword [esp + 0xb4]
cmp byte [esp + 0x17], 0
je 0x492166
test ebx, ebx
je 0x492166
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call esi
jmp 0x49216c
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x49217a
push eax
call esi
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x24]
jne 0x49218e
test eax, eax
je 0x49218c
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret