Function at 0x49a770
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 0x49a7bd
cmp eax, 9
jne 0x49a7c2
add esi, 2
jmp 0x49a7b0
cmp word [esi], 0x2a
jne 0x49a8ba
lea esp, [esp]
push 9
push 0x50d2f0
add esi, 2
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x49a7f9
add esi, 0x12
mov byte [esp + 0x17], al
jmp 0x49a85e
push 9
push str._a_53
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x49a820
add esi, 0x12
mov byte [esp + 0x15], 1
jmp 0x49a85e
push 0xa
push 0x50d37c
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x49a85e
add esi, 0x14
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.00498780
test al, al
jne 0x49a856
mov byte [esp + 0x14], 1
jmp 0x49a85e
and dword [esp + 0x18], 0xffffff
xor edi, edi
cmp esi, edi
je 0x49a8ba
movzx eax, word [esi]
cmp ax, di
je 0x49a8ba
lea esp, [esp]
movzx edx, ax
mov ecx, 0x4ebd9c
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x49a89f
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, di
jne 0x49a880
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x49a870
jmp 0x49a8ba
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x49a89f
cmp eax, 9
je 0x49a89f
cmp word [esi], 0x2a
je 0x49a7d0
mov ebp, dword [esp + 0xb4]
cmp ebp, edi
je 0x49aba2
cmp byte [esp + 0x14], 0
jne 0x49aba2
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push ebp
call esi
test eax, eax
je 0x49aba2
mov eax, dword [esp + 0xb0]
cmp eax, edi
je 0x49a94a
lea ecx, [esp + 0x50]
push ecx
push 0x18
push eax
call esi
test eax, eax
je 0x49aba2
cmp byte [esp + 0x15], 0
je 0x49a92c
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 0x49a956
mov ebx, eax
jmp 0x49a956
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jl 0x49a940
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x58]
jmp 0x49a956
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.004d2f90
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 0x49aba2
push 0
call edi
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x49ab60
push 0
call edi
mov dword [esp + 0x20], eax
test eax, eax
je 0x49ab60
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 0x49ab60
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 0x49ab60
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 0x49ab50
cmp dword [esp + 0x18], 0xffffffff
je 0x49aaa7
and dword [esp + 0x18], 0xffffff
je 0x49aaa7
mov ecx, dword [esp + 0x18]
xor ebp, ebp
call fcn.0042f840
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 0x49aa82
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
test ebp, ebp
je 0x49aa82
push edi
lea edx, [esp + 0x6c]
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov bl, byte [esp + 0x14]
jmp 0x49aa84
mov bl, 1
test ebp, ebp
je 0x49aa90
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x49aa9b
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test bl, bl
jne 0x49ab50
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x49ab28
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 0x49ab50
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 0x49ab50
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 0x49ab13
mov ecx, dword [esp + 0x6c]
push 0
push ecx
jmp 0x49ab1a
mov ecx, dword [esp + 0x70]
push ecx
push 0
push esi
call edi
test eax, eax
sete al
test al, al
jne 0x49ab50
jmp 0x49ab4b
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 0x49ab50
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 0x49ab80
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49ab7d
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x49ab9b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49ab98
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 0x49abb8
test ebp, ebp
je 0x49abb8
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call esi
jmp 0x49abbe
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x49abcc
push eax
call esi
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x24]
jne 0x49abe0
test eax, eax
je 0x49abde
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret