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

Disassembly:
push 0xffffffffffffffff
push 0x4eea70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004a6860
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4a6a38
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0xa0]
push eax
call fcn.004e5ed7
xor eax, eax
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004a64f0
mov ebx, dword [eax]
mov edx, dword [esp + 0x9c]
push 1
mov dword [esp + 0x3c], ebx
mov ebp, dword [eax + 4]
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], ebp
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, esi
call fcn.004a6860
push 2
mov ecx, esi
mov edi, eax
call fcn.004a6860
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x4a6ae0
cmp edi, 0xffffffff
je 0x4a6aa4
mov ecx, dword [esi + 0xf8]
test ecx, ecx
jne 0x4a6aa4
add dword [esp + 0x58], ebx
cmp eax, 0xffffffff
je 0x4a6ab7
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x4a6ab7
sub dword [esp + 0x60], ebx
mov ecx, dword [esi + 0xf4]
test ecx, ecx
jle 0x4a6b2d
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add edi, eax
add ecx, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ecx
jmp 0x4a6b2d
cmp edi, 0xffffffff
je 0x4a6af3
mov ecx, dword [esi + 0xf8]
test ecx, ecx
jne 0x4a6af3
add dword [esp + 0x5c], ebp
cmp eax, 0xffffffff
je 0x4a6b06
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x4a6b06
sub dword [esp + 0x64], ebp
mov edi, dword [esi + 0xf4]
test edi, edi
jle 0x4a6b2d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add edi, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
sub eax, edx
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4a6a1b
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
sub eax, edx
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4a6a1b
lea ecx, [esp + 0x68]
call fcn.004e2c08
mov edi, dword [esp + 0x98]
mov dword [esp + 0x90], 0
test edi, edi
jne 0x4a6b7c
xor eax, eax
jmp 0x4a6b7f
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x6c]
call fcn.004e2cbf
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x745fcc
mov edx, dword [edi + 4]
push ebp
push ebx
push edx
mov byte [esp + 0x9c], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x54]
call fcn.004e37ff
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.004e2e00
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x4a6c27
mov eax, dword [esi + 0xbc]
lea ecx, [esp + 0x68]
push eax
push ebp
push ebx
push 0
push 0
call fcn.004e5f01
mov edx, dword [esp + 0x6c]
mov ecx, dword [esi + 0x54]
lea eax, [esp + 0x68]
push 1
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x4a6d35
lea ecx, [esp + 0x78]
call fcn.004e2c08
test edi, edi
mov byte [esp + 0x90], 2
jne 0x4a6c40
xor eax, eax
jmp 0x4a6c43
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x7c]
call fcn.004e2cbf
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x745fcc
mov ecx, dword [edi + 4]
push ebx
push ebp
push ecx
mov byte [esp + 0x9c], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x4c]
call fcn.004e37ff
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x7c]
push eax
push edx
call fcn.004e2e00
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xbc]
push eax
push ebx
push ebp
push 0
push 0
lea ecx, [esp + 0x8c]
call fcn.004e5f01
mov edx, dword [esp + 0x7c]
mov ecx, dword [esi + 0x54]
lea eax, [esp + 0x78]
push 1
neg eax
mov ecx, dword [ecx + 4]
push 0
sbb eax, eax
push 0
and eax, edx
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
lea edx, [esp + 0x68]
lea eax, [esp + 0x78]
push edx
push ebx
push ebp
push eax
call fcn.004a72d0
lea ecx, [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x4a6d0b
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], 0x745fc0
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 4
call fcn.004e3856
lea ecx, [esp + 0x78]
mov byte [esp + 0x90], 1
call fcn.004e2d3d
mov esi, dword [esi + 0xe4]
mov dword [esp + 0x24], 1
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x4a6d4f
jmp dword [eax*4 + 0x4a70a0]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x5c]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x60]
push 0
push eax
mov eax, dword [edi + 4]
push ebp
push ebx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp case.default.0x4a6d4f
mov eax, dword [esp + 0x18]
sub eax, ebp
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jns 0x4a6d9a
xor ecx, ecx
mov eax, dword [esp + 0x14]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
jns 0x4a6da9
xor eax, eax
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
add ecx, edx
mov edx, dword [esp + 0x58]
add edx, eax
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
push 0xcc0020
and eax, esi
push 0
push 0
push eax
mov eax, dword [edi + 4]
push ebp
push ebx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp case.default.0x4a6d4f
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x14]
neg eax
push 0xcc0020
push ebp
sbb eax, eax
push ebx
and eax, esi
push 0
push 0
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp case.default.0x4a6d4f
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov eax, edi
mov dword [esp + 0x18], ecx
cdq
idiv ebp
mov ecx, dword [esp + 0x58]
mov esi, eax
mov eax, dword [esp + 0x14]
cdq
idiv ebx
inc esi
inc eax
test esi, esi
mov dword [esp + 0x38], eax
jle case.default.0x4a6d4f
mov edx, ebp
mov dword [esp + 0x10], edi
neg edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x4a6f0a
mov edi, dword [esp + 0x14]
mov esi, ebx
neg esi
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x60]
lea eax, [ecx + ebx]
cmp eax, edx
mov dword [esp + 0x30], eax
jle 0x4a6e8c
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
mov dword [esp + 0x20], edx
jmp 0x4a6e90
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
add eax, ebp
cmp eax, edx
jle 0x4a6eae
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
jmp 0x4a6eb0
mov edx, ebp
lea eax, [esp + 0x68]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x74]
push 0
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
add edi, esi
and ecx, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jne 0x4a6e6d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
add ecx, ebp
add edi, edx
dec esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], esi
jne 0x4a6e59
jmp case.default.0x4a6d4f
fild dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp esi, edi
fidiv dword [esp + 0x3c]
jl 0x4a6f7c
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fmul st(1)
call fcn.004bf658
mov esi, eax
test esi, esi
jle 0x4a6fb2
test edi, edi
jle 0x4a6fb2
mov eax, dword [esp + 0x14]
cdq
idiv esi
test edx, edx
jne 0x4a6f79
mov eax, dword [esp + 0x18]
cdq
idiv edi
test edx, edx
je 0x4a6fbc
dec edi
jmp 0x4a6f4a
mov dword [esp + 0x2c], esi
fild dword [esp + 0x2c]
fdiv st(1)
call fcn.004bf658
mov ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
jle 0x4a6fb2
test ecx, ecx
jle 0x4a6fb2
mov eax, dword [esp + 0x14]
cdq
idiv esi
test edx, edx
jne 0x4a6faf
mov eax, dword [esp + 0x18]
cdq
idiv ecx
test edx, edx
je 0x4a6fc0
dec esi
jmp 0x4a6f7c
fstp st(0)
mov esi, ebx
mov dword [esp + 0x10], ebp
jmp 0x4a6fc2
fstp st(0)
jmp 0x4a6fc6
fstp st(0)
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cdq
idiv edi
xor edi, edi
mov dword [esp + 0x18], edi
mov ecx, eax
mov eax, dword [esp + 0x14]
cdq
idiv esi
test ecx, ecx
mov dword [esp + 0x38], eax
jle case.default.0x4a6d4f
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x4a7038
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x68]
neg eax
push 0xcc0020
mov ecx, dword [esp + 0x1c]
sbb eax, eax
push ebp
push ebx
and eax, edx
mov edx, dword [esp + 0xa4]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [edx + 4]
push esi
push ecx
push edi
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x2c]
add edi, esi
dec eax
mov dword [esp + 0x2c], eax
jne 0x4a6ff0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x28]
xor edi, edi
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
jne 0x4a6fe8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a705e
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x6c]
push eax
push edx
call fcn.004e2e00
mov dword [esp + 0x50], 0x745fc0
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 5
call fcn.004e3856
lea ecx, [esp + 0x68]
mov dword [esp + 0x90], 0xffffffff
call fcn.004e2d3d
mov eax, 1
jmp 0x4a6a1d