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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0x3c], ecx
je 0x4d4d99
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4d4d99
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d4d99
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4d4d99
mov dl, byte [ecx + 0x182]
test dl, dl
je 0x4d4d99
test eax, eax
jge 0x4d3f77
mov eax, dword [ecx + 0xc]
mov dword [ebp + 0x14], eax
test edi, edi
jge 0x4d3f81
mov edi, dword [ecx + 0x10]
mov dword [ebp + 0x18], edi
mov eax, dword [ecx + 0x14c]
mov esi, dword [ecx + 0x1bc]
test eax, eax
setge byte [esp + 0x26]
test esi, esi
push ebx
setne byte [esp + 0x2b]
call dword [sym.imp.GDI32.dll_SaveDC]
test eax, eax
mov dword [esp + 0xac], eax
je 0x4d4d99
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4d3fe4
lea ecx, [esp + 0xf8]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov esi, eax
push 1
push esi
push ebx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x9c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov eax, dword [esp + 0xa0]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
mov edx, eax
jg 0x4d4005
mov edx, ecx
mov esi, dword [esp + 0xa8]
cmp esi, edx
jge 0x4d4016
mov dword [esp + 0x64], esi
jmp 0x4d4022
cmp eax, ecx
mov dword [esp + 0x64], eax
jg 0x4d4022
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
mov esi, edx
jg 0x4d4034
mov esi, ecx
mov eax, dword [esp + 0xa4]
cmp eax, esi
jge 0x4d4045
mov dword [esp + 0x60], eax
jmp 0x4d4051
cmp edx, ecx
mov dword [esp + 0x60], edx
jg 0x4d4051
mov dword [esp + 0x60], ecx
mov edx, dword [ebp + 0x14]
mov esi, eax
add ecx, edx
cmp eax, ecx
jl 0x4d405e
mov esi, ecx
mov edx, dword [esp + 0x9c]
cmp edx, esi
jle 0x4d406d
mov eax, edx
jmp 0x4d4073
cmp eax, ecx
jl 0x4d4073
mov eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xa8]
add ecx, edi
mov esi, edx
cmp edx, ecx
mov dword [esp + 0x38], ecx
jl 0x4d408b
mov esi, ecx
cmp dword [esp + 0xa0], esi
jle 0x4d409d
mov esi, dword [esp + 0xa0]
jmp 0x4d40a5
cmp edx, ecx
mov esi, edx
jl 0x4d40a5
mov esi, ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x26]
sub esi, ecx
test al, al
mov dword [esp + 0x88], esi
jne 0x4d44d9
mov al, byte [esp + 0x27]
test al, al
jne 0x4d44d9
mov eax, dword [esp + 0x3c]
mov cl, byte [eax + 0x181]
test cl, cl
jne 0x4d44d9
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jne 0x4d416d
cmp edi, dword [eax + 0x10]
jne 0x4d416d
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov al, byte [ebp + 0x24]
test al, al
je 0x4d413f
mov eax, dword [esp + 0x3c]
push 0xcc0020
push 0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push edi
push eax
mov ecx, dword [ebp + 0xc]
push 0
push 0
neg edi
push edi
push eax
mov eax, dword [esp + 0x60]
dec eax
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
jmp 0x4d4d54
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x14]
push 0
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x34]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push edi
push 0
push 0
push 0
push edi
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
jmp 0x4d4d54
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xb8]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xbc], 0x28
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], esi
mov word [esp + 0xc8], 1
mov word [esp + 0xca], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
lea edx, [esp + 0x24]
mov edi, eax
push 0
push edx
lea eax, [esp + 0xc4]
push 0
push eax
push ebx
mov dword [esp + 0x74], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d4491
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax*2]
lea eax, [ecx*8 + 0x1f]
mov ecx, dword [esp + 0x3c]
cdq
fild dword [ecx + 0xc]
and edx, 0x1f
add eax, edx
fidiv dword [ebp + 0x14]
sar eax, 5
shl eax, 2
test esi, esi
mov dword [esp + 0x70], eax
fstp dword [esp + 0x28]
fild dword [ecx + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x54]
jle 0x4d4491
mov ecx, eax
mov edx, dword [esp + 0x6c]
neg ecx
mov dword [esp + 0x74], ecx
lea ecx, [esi - 1]
imul ecx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x44]
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x3c]
sub eax, edx
mov dword [esp + 0x38], eax
fild dword [esi + 0x10]
fild dword [esp + 0x38]
fmul dword [esp + 0x54]
fsubp st(1)
fst dword [esp + 0x48]
fstp qword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
test eax, eax
jge 0x4d4296
xor eax, eax
jmp 0x4d42a5
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
mov dword [esp + 0x50], eax
imul eax, dword [esi + 0x30]
add eax, dword [esi + 0x34]
mov dword [esp + 0x78], eax
mov al, byte [ebp + 0x24]
test al, al
je 0x4d42c8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ebx, [ecx + edx]
jmp 0x4d42d3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x4d445d
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x60]
sub edx, eax
add edx, edi
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul dword [esp + 0x28]
fst dword [esp + 0x4c]
fstp qword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push eax
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
test eax, eax
jge 0x4d4329
xor eax, eax
jmp 0x4d433c
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x4d43e8
fld dword [esp + 0x28]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d43af
fld dword [esp + 0x54]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d43af
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
fld dword [esp + 0x48]
fsub dword [0x592130]
push 0
push 5
push 2
push edx
push eax
push ecx
fstp dword [esp]
fld dword [esp + 0x64]
fsub dword [0x592130]
push ecx
lea ecx, [esp + 0xa0]
fstp dword [esp]
push ecx
mov ecx, esi
call fcn.004db730
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jmp 0x4d4433
fld dword [esp + 0x48]
fsub dword [0x592130]
push 0
push 5
push 2
push ecx
lea eax, [esp + 0x9c]
fstp dword [esp]
fld dword [esp + 0x5c]
fsub dword [0x592130]
push ecx
mov ecx, esi
fstp dword [esp]
push eax
call fcn.004d9e60
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
jmp 0x4d4433
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4d4414
mov edx, dword [esp + 0x50]
mov ecx, esi
push edx
push eax
call fcn.004d4ef0
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.004d4e80
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
jmp 0x4d4433
mov edx, dword [esp + 0x78]
lea ecx, [edx + eax*2]
mov dl, byte [eax + ecx]
add eax, ecx
mov cl, byte [eax + 1]
inc eax
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], cl
mov dl, byte [eax + 1]
mov byte [esp + 0xe], dl
mov al, byte [esp + 0xc]
mov cl, byte [esp + 0xd]
mov dl, byte [esp + 0xe]
mov byte [ebx], al
mov eax, dword [esp + 0x34]
inc ebx
mov byte [ebx], cl
mov ecx, dword [esp + 0x30]
inc ebx
mov byte [ebx], dl
inc ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4d42e7
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
add edi, eax
mov eax, dword [esp + 0x40]
dec esi
add edx, ecx
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], eax
jne 0x4d4251
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xb8]
push 0
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x94]
mov ebx, dword [ebp + 8]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
push ecx
jmp 0x4d4d3f
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x74]
push edx
mov ecx, edi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call fcn.004d3a30
mov ecx, edi
call fcn.004d3a70
mov dword [esp + 0x70], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xb8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
push ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0xbc], 0x28
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], esi
mov word [esp + 0xc8], 1
mov word [esp + 0xca], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
lea edx, [esp + 0xc4]
push 0
mov edi, eax
push edx
push ebx
mov dword [esp + 0x9c], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x64]
push 0xcc0020
push eax
push ecx
push ebx
push esi
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4d4cf6
mov eax, dword [esp + 0x30]
mov edi, dword [ebp + 0x14]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 5
mov ecx, dword [edx + 0xc]
shl eax, 2
cmp edi, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], ecx
jne 0x4d4870
mov ecx, dword [edx + 0x10]
mov edi, dword [ebp + 0x18]
cmp edi, ecx
jne 0x4d4870
mov edi, dword [esp + 0x6c]
mov edx, dword [ebp + 0x10]
sub ecx, edi
add ecx, edx
mov ebx, ecx
test esi, esi
mov dword [esp + 0x2c], ebx
jle 0x4d4cf6
mov edi, dword [esp + 0x60]
mov edx, dword [ebp + 0xc]
sub edi, edx
mov edx, eax
neg edx
mov dword [esp + 0x40], edx
lea edx, [esi - 1]
imul edx, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], esi
jmp 0x4d464b
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x20], edi
imul eax, dword [ecx + 0xc]
mov dword [esp + 0x80], eax
mov al, byte [ebp + 0x24]
test al, al
jne 0x4d466b
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
lea esi, [edx + eax]
mov eax, ebx
imul eax, dword [ecx + 0x30]
lea edx, [edi + edi*2]
add eax, edx
mov edx, dword [ecx + 0x34]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4d4837
mov dword [esp + 0x4c], eax
mov al, byte [esp + 0x27]
test al, al
je 0x4d46be
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + 0x1bc]
add edx, eax
mov eax, dword [esp + 0x80]
mov cl, byte [edx + eax]
mov byte [esp + 0x1c], cl
jmp 0x4d46c3
mov byte [esp + 0x1c], 0xff
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
and edx, 0xff
mov bl, byte [edi + 0x180]
mov eax, dword [edi + 0x28]
inc ebx
imul ebx, edx
sar ebx, 8
test eax, eax
mov byte [esp + 0x1c], bl
je 0x4d4743
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.004d4ef0
and eax, 0xff
lea edx, [esp + 0x7c]
push eax
push edx
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.004d4e80
mov cl, byte [edi + 0x181]
mov eax, dword [eax]
test cl, cl
mov dword [esp + 0x10], eax
je 0x4d4765
mov ebx, dword [esp + 0x13]
mov ecx, dword [esp + 0x1c]
and ebx, 0xff
and ecx, 0xff
inc ebx
imul ebx, ecx
sar ebx, 8
mov byte [esp + 0x1c], bl
jmp 0x4d4765
mov eax, dword [esp + 0x48]
mov dl, byte [eax]
mov cl, byte [eax + 1]
inc eax
mov byte [esp + 0x10], dl
inc eax
mov byte [esp + 0x11], cl
mov dl, byte [eax]
inc eax
mov byte [esp + 0x12], dl
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov edi, dword [edi + 0x28]
test edi, edi
je 0x4d477c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x70]
cmp ecx, edx
jne 0x4d478e
test edi, edi
jne 0x4d4782
cmp eax, dword [esp + 0x74]
jne 0x4d478e
mov cl, byte [esp + 0x26]
test cl, cl
jne 0x4d481c
test bl, bl
je 0x4d481c
cmp bl, 0xff
jne 0x4d47b2
mov dl, byte [esp + 0x10]
mov al, byte [esp + 0x11]
mov cl, byte [esp + 0x12]
mov byte [esi], dl
inc esi
mov byte [esi], al
inc esi
mov byte [esi], cl
inc esi
jmp 0x4d481f
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
not bl
mov byte [esp + 0x58], bl
and eax, 0xff
mov edi, dword [esp + 0x58]
imul eax, ecx
and edi, 0xff
imul edx, edi
add eax, edx
xor edx, edx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x11]
mov dl, byte [esi + 1]
inc esi
and eax, 0xff
imul edx, edi
imul eax, ecx
add eax, edx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x12]
and eax, 0xff
inc esi
imul eax, ecx
xor ecx, ecx
mov cl, byte [esi]
imul ecx, edi
add eax, ecx
sar eax, 8
mov byte [esi], al
inc esi
jmp 0x4d481f
add esi, 3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
inc ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], eax
jne 0x4d4696
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
add esi, edx
mov edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [esp + 0x50]
inc ecx
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], eax
jne 0x4d463f
jmp 0x4d4cf6
fild dword [esp + 0x38]
test esi, esi
fidiv dword [ebp + 0x14]
fstp dword [esp + 0x20]
fild dword [edx + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x2c]
jle 0x4d4cf6
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x7c], ecx
lea ecx, [esi - 1]
imul ecx, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x4c]
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x3c]
sub edx, edi
mov dword [esp + 0x40], edx
fild dword [esi + 0x10]
fild dword [esp + 0x40]
fmul dword [esp + 0x2c]
fsubp st(1)
fst dword [esp + 0x34]
fstp qword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
test eax, eax
jge 0x4d4901
xor eax, eax
jmp 0x4d4910
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
mov ecx, eax
mov dword [esp + 0x5c], eax
imul ecx, dword [esi + 0xc]
mov dword [esp + 0x80], ecx
mov cl, byte [ebp + 0x24]
test cl, cl
mov ecx, dword [esp + 0x50]
jne 0x4d4930
mov ecx, dword [esp + 0x48]
imul eax, dword [esi + 0x30]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], 0
add ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x34]
add eax, ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4d4cc2
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x60]
sub eax, edi
add eax, edx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [esp + 0x20]
fst dword [esp + 0x28]
fstp qword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb0]
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
test eax, eax
jge 0x4d49a9
xor edi, edi
jmp 0x4d49ba
push edi
push ebx
call fcn.004fc9eb
add esp, 8
call fcn.004f9b54
mov edi, eax
mov al, byte [esp + 0x27]
test al, al
je 0x4d49da
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esp + 0x80]
add ecx, edi
mov al, byte [ecx + edx]
mov byte [esp + 0x1c], al
jmp 0x4d49df
mov byte [esp + 0x1c], 0xff
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [esi + 0x180]
and ecx, 0xff
inc ebx
mov eax, dword [esi + 0x28]
imul ebx, ecx
sar ebx, 8
test eax, eax
mov byte [esp + 0x1c], bl
je 0x4d4b0f
mov edx, dword [esp + 0x5c]
mov ecx, esi
push edx
push edi
call fcn.004d4ef0
and eax, 0xff
mov dword [esp + 0x54], eax
mov al, byte [ebp + 0x20]
test al, al
je 0x4d4aba
fld dword [esp + 0x20]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d4a87
fld dword [esp + 0x2c]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d4a87
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
fld dword [esp + 0x34]
fsub dword [0x592130]
push 0
push 5
push 2
push eax
push ecx
push ecx
lea edx, [esp + 0x108]
fstp dword [esp]
fld dword [esp + 0x40]
fsub dword [0x592130]
push ecx
mov ecx, esi
fstp dword [esp]
push edx
call fcn.004db730
jmp 0x4d4ad7
fld dword [esp + 0x34]
fsub dword [0x592130]
push 0
push 5
push 2
push ecx
lea eax, [esp + 0xf4]
fstp dword [esp]
fld dword [esp + 0x38]
fsub dword [0x592130]
push ecx
mov ecx, esi
fstp dword [esp]
push eax
call fcn.004d9e60
jmp 0x4d4ad7
mov ecx, dword [esp + 0x5c]
push ecx
push edi
mov ecx, esi
call fcn.004d4ef0
lea edx, [esp + 0xec]
push eax
push edx
mov ecx, esi
call fcn.004d4e80
mov cl, byte [esi + 0x181]
mov eax, dword [eax]
test cl, cl
mov dword [esp + 0x10], eax
je 0x4d4bdd
mov ebx, dword [esp + 0x13]
mov ecx, dword [esp + 0x1c]
and ebx, 0xff
and ecx, 0xff
inc ebx
imul ebx, ecx
sar ebx, 8
mov byte [esp + 0x1c], bl
jmp 0x4d4bdd
mov al, byte [ebp + 0x20]
test al, al
je 0x4d4bb8
fld dword [esp + 0x20]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d4b7f
fld dword [esp + 0x2c]
fcomp dword [0x592140]
fnstsw ax
test ah, 0x41
jne 0x4d4b7f
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
fld dword [esp + 0x34]
fsub dword [0x592130]
push 0
push 5
push 2
push edx
push eax
push ecx
fstp dword [esp]
fld dword [esp + 0x40]
fsub dword [0x592130]
push ecx
lea ecx, [esp + 0x110]
fstp dword [esp]
push ecx
mov ecx, esi
call fcn.004db730
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4d4bdd
fld dword [esp + 0x34]
fsub dword [0x592130]
push 0
push 5
push 2
push ecx
lea edx, [esp + 0xf8]
fstp dword [esp]
fld dword [esp + 0x38]
fsub dword [0x592130]
push ecx
mov ecx, esi
fstp dword [esp]
push edx
call fcn.004d9e60
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x4d4bdd
mov eax, dword [esp + 0x90]
lea ecx, [eax + edi*2]
add edi, ecx
mov cl, byte [edi + 2]
mov byte [esp + 0x12], cl
mov dl, byte [edi]
mov al, byte [edi + 1]
inc edi
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4d4bf4
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x54]
cmp edi, edx
jne 0x4d4c06
test ecx, ecx
jne 0x4d4bfa
cmp eax, dword [esp + 0x74]
jne 0x4d4c06
mov cl, byte [esp + 0x26]
test cl, cl
jne 0x4d4ca2
test bl, bl
je 0x4d4ca2
cmp bl, 0xff
jne 0x4d4c2e
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0x11]
mov byte [eax], cl
mov cl, byte [esp + 0x12]
inc eax
mov byte [eax], dl
inc eax
mov byte [eax], cl
inc eax
jmp 0x4d4ca9
mov edi, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0xc]
and edi, 0xff
not bl
mov byte [esp + 0x58], bl
xor ebx, ebx
mov ecx, dword [esp + 0x58]
mov bl, byte [eax]
and ecx, 0xff
and edx, 0xff
imul edx, edi
imul ebx, ecx
add edx, ebx
xor ebx, ebx
sar edx, 8
mov byte [eax], dl
mov edx, dword [esp + 0x11]
mov bl, byte [eax + 1]
inc eax
and edx, 0xff
imul ebx, ecx
imul edx, edi
add edx, ebx
xor ebx, ebx
sar edx, 8
mov byte [eax], dl
mov edx, dword [esp + 0x12]
mov bl, byte [eax + 1]
inc eax
and edx, 0xff
imul ebx, ecx
imul edx, edi
add edx, ebx
sar edx, 8
mov byte [eax], dl
inc eax
jmp 0x4d4ca9
mov eax, dword [esp + 0xc]
add eax, 3
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x4d495e
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
add edi, eax
mov eax, dword [esp + 0x38]
dec esi
add edx, ecx
dec eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
jne 0x4d48b3
mov eax, dword [esp + 0x44]
lea edx, [esp + 0xb8]
push 0
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x94]
mov ebx, dword [ebp + 8]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x84]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4d4d7c
lea edx, [esp + 0xf8]
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov esi, eax
push 2
push esi
push ebx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xac]
push eax
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x20