Function at 0x495700
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]
movzx eax, word [esi]
cmp eax, 0x20
je 0x49574d
cmp eax, 9
jne 0x495752
add esi, 2
jmp 0x495740
cmp word [esi], 0x2a
jne 0x49584a
lea esp, [esp]
push 9
push 0x507af8
add esi, 2
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x495789
add esi, 0x12
mov byte [esp + 0x17], al
jmp 0x4957ee
push 9
push 0x50881c
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4957b0
add esi, 0x12
mov byte [esp + 0x15], 1
jmp 0x4957ee
push 0xa
push 0x507b84
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4957ee
add esi, 0x14
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.00493710
test al, al
jne 0x4957e6
mov byte [esp + 0x14], 1
jmp 0x4957ee
and dword [esp + 0x18], 0xffffff
xor edi, edi
cmp esi, edi
je 0x49584a
movzx eax, word [esi]
cmp ax, di
je 0x49584a
lea esp, [esp]
movzx edx, ax
mov ecx, 0x4e6dc4
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x49582f
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, di
jne 0x495810
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x495800
jmp 0x49584a
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x49582f
cmp eax, 9
je 0x49582f
cmp word [esi], 0x2a
je 0x495760
mov ebp, dword [esp + 0xb4]
cmp ebp, edi
je 0x495b32
cmp byte [esp + 0x14], 0
jne 0x495b32
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push ebp
call esi
test eax, eax
je 0x495b32
mov eax, dword [esp + 0xb0]
cmp eax, edi
je 0x4958da
lea ecx, [esp + 0x50]
push ecx
push 0x18
push eax
call esi
test eax, eax
je 0x495b32
cmp byte [esp + 0x15], 0
je 0x4958bc
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
jl 0x4958e6
mov ebx, eax
jmp 0x4958e6
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jl 0x4958d0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x58]
jmp 0x4958e6
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push 0x2c
lea ecx, [esp + 0x80]
push edi
push ecx
call fcn.004ce290
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], ebx
mov dword [esp + 0x8c], 0x200001
call edi
mov esi, eax
test esi, esi
je 0x495b32
push 0
call edi
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x495af0
push 0
call edi
mov dword [esp + 0x20], eax
test eax, eax
je 0x495af0
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 0x495af0
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, eax
push ecx
push esi
call edi
mov dword [esp + 0x4c], eax
test eax, eax
je 0x495af0
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x20]
push edx
push ebp
call edi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x495ae0
cmp dword [esp + 0x18], 0xffffffff
je 0x495a37
and dword [esp + 0x18], 0xffffff
je 0x495a37
mov ecx, dword [esp + 0x18]
xor ebp, ebp
call fcn.00430c70
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
test edi, edi
je 0x495a12
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
test ebp, ebp
je 0x495a12
push edi
lea edx, [esp + 0x6c]
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov bl, byte [esp + 0x14]
jmp 0x495a14
mov bl, 1
test ebp, ebp
je 0x495a20
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x495a2b
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test bl, bl
jne 0x495ae0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x495ab8
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 0x495ae0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push 0xcc0020
push 0
push 0
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
push 0
push 0
push esi
call edi
test eax, eax
je 0x495ae0
cmp byte [esp + 0x15], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push ebp
push edx
push eax
je 0x495aa3
mov ecx, dword [esp + 0x6c]
push 0
push ecx
jmp 0x495aaa
mov ecx, dword [esp + 0x70]
push ecx
push 0
push esi
call edi
test eax, eax
sete al
test al, al
jne 0x495ae0
jmp 0x495adb
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push ebp
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x495ae0
mov byte [esp + 0x16], 1
mov ecx, dword [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x28]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call edi
test ebp, ebp
je 0x495b10
mov eax, dword [esp + 0x30]
test eax, eax
je 0x495b0d
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x495b2b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x495b28
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
mov ebp, dword [esp + 0xb4]
cmp byte [esp + 0x17], 0
je 0x495b48
test ebp, ebp
je 0x495b48
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call esi
jmp 0x495b4e
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x495b5c
push eax
call esi
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x24]
jne 0x495b70
test eax, eax
je 0x495b6e
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret