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

Disassembly:
push 0xffffffffffffffff
push 0x4db9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
call fcn.00499d70
mov ebx, dword [esp + 0xd8]
xor ebp, ebp
cmp ebx, ebp
je 0x49aee6
cmp byte [ebx], 0
je 0x49aee6
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0xdc]
cmp eax, ebp
jne 0x49a9be
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
call fcn.004caee5
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd0], ebp
call fcn.004a2b80
mov edi, 0x552c90
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x58]
mov byte [esp + 0xd0], 1
call fcn.004a2b80
mov dword [esp + 0x58], edi
mov byte [esp + 0xd0], 2
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x90]
push ebx
push eax
lea ecx, [esp + 0x90]
call fcn.004cb480
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004a2e10
push 0xa
push ebx
call fcn.004bc4e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x49aa56
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
jmp 0x49aa65
mov edi, ebp
sub edi, ebx
test edi, edi
jle 0x49aa65
cmp byte [ebp - 1], 0xd
jne 0x49aa65
dec edi
push edi
lea ecx, [esp + 0x70]
call fcn.004a2e10
lea edx, [esp + 0x80]
push edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x49aa93
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x84]
xor eax, eax
add ecx, edi
cmp ebp, eax
mov dword [esp + 0x14], ecx
je 0x49aac0
mov dl, byte [ebp + 1]
lea ebx, [ebp + 1]
test dl, dl
je 0x49aac0
add ecx, 2
mov dword [esp + 0x14], ecx
jmp 0x49aa14
mov edx, dword [esp + 0x18]
cmp edx, eax
je 0x49ae94
cmp ecx, eax
je 0x49ae94
neg ecx
mov dword [esp + 0xa4], ecx
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0xa4], edx
push eax
push ecx
lea edx, [esp + 0xa8]
push eax
push edx
push esi
mov dword [esp + 0xb4], 0x28
mov word [esp + 0xc0], 1
mov word [esp + 0xc2], 0x20
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x30], eax
mov ebx, edi
sub ebx, 0xffffff
neg ebx
sbb ebx, ebx
and ebx, 0xffffff
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push 0xf00021
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x90]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x20], eax
jle 0x49ac05
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x8c]
mov ecx, dword [eax + ebp*4]
mov eax, dword [edx + ebp*4]
push ecx
mov ecx, dword [esp + 0x64]
push eax
mov edx, dword [ecx + ebp*4]
push edx
push 0
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x49abd8
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x10]
push ecx
push esi
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, edi
xor ecx, ecx
mov cl, byte [esp + 0xe2]
and eax, 0xff
shl eax, 0x10
or ecx, eax
and edi, 0xff00
or ecx, edi
mov eax, ebx
mov ebp, ecx
xor ecx, ecx
mov cl, byte [esp + 0x26]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov eax, ebx
mov edi, dword [esp + 0x48]
and eax, 0xff00
or ecx, eax
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov eax, ecx
mov esi, edx
imul eax, edi
test eax, eax
mov dword [esp + 0x2c], esi
jle 0x49acb1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
cmp dword [edx], eax
je 0x49aca3
mov dword [edx], ebp
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
add edx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x49ac91
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x24], eax
jle 0x49ae29
mov eax, dword [ebp]
cmp ecx, eax
jle 0x49acd3
mov eax, ecx
mov dword [esp + 0x18], eax
jmp 0x49acd7
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 4]
cmp edi, edx
jle 0x49ace4
mov dword [esp + 0x1c], edi
jmp 0x49acea
mov dword [esp + 0x1c], edx
mov edi, edx
mov esi, edi
mov dword [esp + 0x14], 0
imul esi, eax
sub eax, ecx
mov dword [esp + 0x10], esi
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, edi
sub eax, edx
cdq
sub eax, edx
mov edx, dword [ebp]
sar eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
mov edx, dword [ebp + 4]
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, edi
sub eax, edx
mov ebp, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x49ae0f
jmp 0x49ad4e
mov esi, dword [esp + 0x10]
lea eax, [esi*4]
push eax
call fcn.004cbc9e
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
mov esi, eax
jle 0x49ad73
or eax, 0xffffffff
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp]
push edx
mov edx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push 0
push eax
push ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push edi
push ecx
push esi
call fcn.00499b30
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
push ebx
push 0
push eax
push ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x8c]
push edx
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x78]
push eax
push edi
push ecx
push esi
call fcn.00499b30
mov eax, dword [ebp + 8]
add esp, 0x70
mov dword [ebp], 0xff000000
push eax
call fcn.004cbcc7
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [ebp + 8], esi
mov ecx, dword [edx + 8]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49ad4a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push edx
mov dword [eax], ecx
mov dword [eax + 4], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x49aea0
imul ecx, edi
lea edi, [ecx*4]
push edi
call fcn.004cbc9e
mov ecx, edi
mov edi, eax
mov edx, ecx
mov dword [esp + 0x30], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [ebp + 8], 1
mov dword [ebp], eax
mov dword [ebp + 4], ecx
call fcn.004cbc9e
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x34]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x49aea0
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, 0x552c60
lea ecx, [esp + 0x58]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x58], esi
call fcn.004a2d80
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 0
mov dword [esp + 0x6c], esi
call fcn.004a2d80
lea ecx, [esp + 0x88]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004caf18
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 0xc