Function at 0x4a7f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e24c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x30]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], eax
mov dword [esp + 0x24], 0x4f7f60
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x4f7fac
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp eax, ebx
mov byte [esp + 0x50], 1
je 0x4a7feb
cmp dword [esi + 0x2c], 0xff000000
je 0x4a8084
mov ecx, dword [esi + 0x2c]
push ecx
call fcn.004817a0
add esp, 4
push eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004d2c05
mov edx, dword [esi + 0x2c]
push edx
call fcn.004817a0
add esp, 4
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.004d2c05
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004d220d
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov ecx, edi
call fcn.004d220d
mov ecx, dword [esi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x34]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.004d220d
push ebx
mov ecx, edi
call fcn.004d220d
lea ecx, [esp + 0x1c]
call fcn.004d2c5c
lea ecx, [esp + 0x24]
call fcn.004d2c5c
xor ebx, ebx
cmp dword [esi + 0x80], ebx
je 0x4a820f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x80]
push eax
call fcn.004d2bf0
push 0x18
mov dword [esp + 0x14], eax
call fcn.004cb8b1
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax + 4]
push ebx
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004cb8da
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
add esp, 4
test eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x4a8109
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.004d288b
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x34]
lea ecx, [esp + 0x38]
call fcn.004d1fc2
push 0
mov byte [esp + 0x54], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.004d2079
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4a8143
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
jmp 0x4a8145
xor ebx, ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4a81a1
push 4
mov ecx, edi
call fcn.004d2373
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push 0xcc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [esp + 0x38]
and eax, ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4a81e3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp eax, edx
jg 0x4a81af
mov edx, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jg 0x4a81bd
mov ecx, eax
lea eax, [esp + 0x38]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x44]
push 0
push eax
push ecx
push edx
mov edx, dword [edi + 4]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x4a81f3
mov eax, dword [esp + 0x3c]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x20]
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 1
call fcn.004d20f7
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x4a8293
mov eax, dword [esi + 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004d2c05
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
push ecx
mov ecx, edi
call fcn.004d220d
lea edx, [esp + 0x24]
mov ecx, edi
push edx
mov ebx, eax
call fcn.004d220d
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [edi + 4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
mov ecx, edi
call fcn.004d220d
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004d220d
lea ecx, [esp + 0x1c]
call fcn.004d2c5c
lea ecx, [esp + 0x24]
call fcn.004d2c5c
xor ebx, ebx
push 1
mov ecx, edi
call fcn.004d22e9
mov edx, dword [ebp + 0xc]
mov ecx, esi
push edx
push edi
call fcn.004a68d0
test eax, eax
jne 0x4a82ee
mov esi, 0x4f7f40
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call fcn.004d2c5c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 4
call fcn.004d2c5c
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x64]
mov dword [esp + 0x2c], 0
cmp eax, ebx
mov dword [esp + 0x30], 0
jle 0x4a832e
push ebx
mov ecx, esi
call fcn.004a6890
fadd qword [esp + 0x2c]
mov eax, dword [esi + 0x64]
inc ebx
cmp ebx, eax
fstp qword [esp + 0x2c]
jl 0x4a8305
fld qword [esp + 0x2c]
fcomp qword [0x4f7f38]
fnstsw ax
test ah, 0x40
je 0x4a8370
mov esi, 0x4f7f40
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 5
call fcn.004d2c5c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 6
call fcn.004d2c5c
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
mov ecx, esi
push ebx
push edi
call fcn.004a6ab0
test eax, eax
jne 0x4a83c2
mov esi, 0x4f7f40
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 7
call fcn.004d2c5c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 8
call fcn.004d2c5c
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
mov ecx, esi
call fcn.004a7c80
mov esi, 0x4f7f40
test eax, eax
mov dword [esp + 0x1c], esi
jne 0x4a8411
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 9
call fcn.004d2c5c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xa
call fcn.004d2c5c
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0xb
call fcn.004d2c5c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xc
call fcn.004d2c5c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc