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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [ebp + 8]
mov al, byte [eax + 2]
mov ecx, 2
cmp cl, al
sbb ecx, ecx
and ecx, dword [0x4f0b18]
push ebx
mov dl, 4
push esi
cmp dl, al
sbb esi, esi
and esi, dword [0x4f0b20]
push edi
xor edi, edi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x78], esi
cmp ecx, edi
je 0x490086
call fcn.0041a480
cmp esi, edi
je 0x490091
mov ecx, esi
call fcn.0041a480
fldz
mov esi, dword [ebp + 0x14]
or eax, 0xffffffff
fstp qword [esp + 0xb8]
xor bl, bl
mov byte [esp + 0x11], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x6f], 1
mov byte [esp + 0x6e], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x4b], 0
mov byte [esp + 0x18], bl
mov dword [esp + 0x2c], edi
mov dword [esp + 0x7c], edi
mov al, byte [esi]
cmp al, 0x20
je 0x49010b
cmp al, 9
jne 0x49010e
inc esi
jmp 0x490101
cmp byte [esi], 0x2a
jne 0x490413
mov edi, 3
jmp 0x490124
mov bl, byte [esp + 0x18]
push 0x4e4740
inc esi
call fcn.0049be50
add esp, 4
push 4
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x4901b0
movsx eax, byte [esi + 4]
add esi, 4
push eax
mov byte [esp + 0x4f], 1
call fcn.004bbc73
add esp, 4
test al, al
je 0x49019e
jmp 0x490160
cmp al, 0x20
je 0x49019a
cmp al, 9
je 0x49019a
cmp al, 0x52
jne 0x490171
or bl, 1
jmp 0x490181
cmp al, 0x47
jne 0x49017a
or bl, 2
jmp 0x490181
cmp al, 0x42
jne 0x490195
or bl, 4
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.004bbc73
add esp, 4
test al, al
jne 0x490160
jmp 0x49019a
mov byte [esp + 0x27], 1
mov byte [esp + 0x18], bl
test bl, bl
jne 0x4903c4
mov byte [esp + 0x18], 7
jmp 0x4903c4
push 0x4e4750
call fcn.0049be50
add esp, 4
push 0xb
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x4901d9
add esi, 0xb
mov byte [esp + 0x6f], al
jmp 0x4903c4
push 0x4e4764
call fcn.0049be50
add esp, 4
push 0xb
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x490202
add esi, 0xb
mov byte [esp + 0x6e], al
jmp 0x4903c4
push 0x4e4190
call fcn.0049be50
add esp, 4
push 0xa
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x490242
add esi, 0xa
mov ecx, esi
lea ebx, [esp + 0x34]
call fcn.0048fdd0
test al, al
je 0x4903bf
and dword [esp + 0x34], 0xffffff
jmp 0x4903c4
push 0x4e4778
call fcn.0049be50
add esp, 4
push edi
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x4902e2
push 0x4e4784
add esi, edi
call fcn.0049be50
add esp, 4
push 8
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x49028e
mov dword [esp + 0x44], 2
jmp 0x4903c4
push 0x4e4798
call fcn.0049be50
add esp, 4
push 8
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x4902b4
mov dword [esp + 0x44], edi
jmp 0x4903c4
push 0x4dd704
call fcn.0049be50
add esp, 4
push 5
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x4903bf
mov dword [esp + 0x44], 1
jmp 0x4903c4
push 0x4e47ac
call fcn.0049be50
add esp, 4
push 6
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
sete bl
test bl, bl
jne 0x4903a5
push 0x4e47bc
call fcn.0049be50
add esp, 4
push 6
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
je 0x4903a5
push 0x4e47cc
call fcn.0049be50
add esp, 4
push 0xc
push eax
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x49037d
lea edx, [esp + 0x7c]
add esi, 0xc
push edx
mov ecx, esi
call fcn.0048fd70
add esp, 4
test al, al
je 0x4903bf
mov eax, dword [esp + 0x7c]
test eax, eax
jns 0x49036e
mov dword [esp + 0x7c], 0
jmp 0x4903c4
cmp eax, 0x64
jle 0x4903c4
mov dword [esp + 0x7c], 0x64
jmp 0x4903c4
call fcn.0040dda0
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x490394
mov dword [esp + 0x2c], 0
jmp 0x4903c4
cmp eax, 0xff
jle 0x4903c4
mov dword [esp + 0x2c], 0xff
jmp 0x4903c4
add esi, 6
test bl, bl
lea ebx, [esp + 0x64]
jne 0x4903b4
lea ebx, [esp + 0x68]
mov ecx, esi
call fcn.0048fdd0
test al, al
jne 0x4903c4
mov byte [esp + 0x27], 1
test esi, esi
je 0x490406
mov dl, byte [esi]
test dl, dl
je 0x490406
mov edi, edi
mov ecx, 0x4d9558
mov al, 0x20
cmp dl, al
je 0x4903f0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4903d7
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x4903d0
jmp 0x490406
mov al, byte [esi]
cmp al, 0x20
je 0x4903fa
cmp al, 9
jne 0x4903fd
inc esi
jmp 0x4903f0
cmp byte [esi], 0x2a
je 0x490120
cmp byte [esp + 0x27], 0
jne 0x49186e
xor edi, edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x49186e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x49186e
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x80], ebx
test ebx, ebx
je 0x49186e
push 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
mov eax, ebx
call fcn.00437d50
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
je 0x490cb2
push 8
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x64]
push edx
push edi
mov eax, ebx
call fcn.00437d50
add esp, 0x14
mov dword [esp + 0x38], eax
test eax, eax
je 0x490cb2
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x70]
mov edi, esi
imul edi, ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0xa8], edi
cmp edi, ecx
jne 0x490cb6
cmp byte [esp + 0x14], 0
jne 0x490506
cmp byte [esp + 0x13], 0
jne 0x490506
cmp byte [esp + 0x4b], 0
jne 0x49053d
test edi, edi
jle 0x4904e9
mov eax, dword [esp + 0x3c]
add eax, 3
mov edx, edi
lea ecx, [ecx]
mov byte [eax], 0
add eax, 4
dec edx
jne 0x4904e0
test ecx, ecx
jle 0x490847
mov edx, dword [esp + 0x38]
lea eax, [edx + 3]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x4904f8
jmp 0x49084b
xor eax, eax
test edi, edi
jle 0x49051c
mov edx, dword [esp + 0x3c]
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, edi
jl 0x490510
xor eax, eax
test ecx, ecx
jle 0x490532
mov edx, dword [esp + 0x38]
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x490522
cmp byte [esp + 0x4b], 0
je 0x490847
cmp byte [esp + 0x18], 0
fldz
mov eax, 0x64
fstp qword [esp + 0x88]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x50], eax
je 0x490cb6
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], edi
cmp edi, eax
je 0x49058c
lea esi, [esp + 0x94]
call fcn.00413990
xor esi, esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
cmp edi, esi
je 0x4905be
mov edi, dword [esp + 0x5c]
lea esi, [esp + 0xac]
call fcn.00413990
mov esi, dword [esp + 0xb0]
cmp dword [esp + 0x98], 0
je 0x49082a
test esi, esi
je 0x49082a
test byte [esp + 0x18], 1
je 0x49065e
test edi, edi
jle 0x49061e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x98]
mov edi, esi
sub ecx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
movzx edx, byte [edx + eax]
mov byte [ecx + edi], dl
movzx edx, byte [eax]
mov byte [edi], dl
add eax, 4
inc edi
dec dword [esp + 0x28]
jne 0x490604
mov eax, dword [esp + 0x98]
push ebx
push esi
mov esi, dword [esp + 0x5c]
push eax
mov edi, esi
mov ebx, esi
call fcn.0049b9e0
fadd qword [0x4e5898]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0x68]
fst qword [esp + 0x94]
add esp, 0xc
mov dword [esp + 0x4c], 1
jmp 0x490665
fld qword [esp + 0x88]
test byte [esp + 0x18], 2
je 0x4906ee
fstp st(0)
test edi, edi
jle 0x4906b3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x98]
mov edi, esi
sub ecx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
movzx edx, byte [eax + edx + 1]
mov byte [edi + ecx], dl
movzx edx, byte [eax + 1]
mov byte [edi], dl
add eax, 4
inc edi
dec dword [esp + 0x28]
jne 0x490697
mov eax, dword [esp + 0x98]
push ebx
push esi
mov esi, dword [esp + 0x5c]
push eax
mov edi, esi
mov ebx, esi
call fcn.0049b9e0
fadd qword [esp + 0x94]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0x68]
fst qword [esp + 0x94]
add esp, 0xc
inc dword [esp + 0x4c]
test byte [esp + 0x18], 4
je 0x49076b
fstp st(0)
test edi, edi
jle 0x49073b
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x98]
add eax, 2
mov edi, esi
sub ecx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
movzx edx, byte [eax + edx]
mov byte [edi + ecx], dl
movzx edx, byte [eax]
mov byte [edi], dl
add eax, 4
inc edi
dec dword [esp + 0x28]
jne 0x490721
mov eax, dword [esp + 0x98]
push ebx
push esi
mov esi, dword [esp + 0x5c]
push eax
mov edi, esi
mov ebx, esi
call fcn.0049b9e0
fadd qword [esp + 0x94]
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0x68]
add esp, 0xc
inc dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
fnstcw word [esp + 0x18]
imul eax, edi
mov dword [esp + 0x58], eax
movzx eax, word [esp + 0x18]
fild dword [esp + 0x58]
mov edx, dword [esp + 0xac]
fdivp st(1)
or eax, 0xc00
mov dword [esp + 0x58], eax
push edx
push 0
push esi
fadd qword [0x4e5888]
fmul qword [0x4e58b0]
fmul qword [0x4e58c0]
fst qword [esp + 0xc4]
fldcw word [esp + 0x64]
fistp qword [esp + 0x94]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x28], ecx
fldcw word [esp + 0x24]
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x9c]
add esp, 4
push eax
push 0
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
fld qword [0x4e5928]
fcomp qword [esp + 0xbc]
add esp, 4
fnstsw ax
test ah, 0x41
jp 0x490cad
mov byte [esp + 0x12], 1
mov dword [esp + 0x1c], 0x64
jmp 0x490cad
lea ecx, [esp + 0xac]
call fcn.004138f0
lea ecx, [esp + 0x94]
call fcn.004138f0
jmp 0x490cb6
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp eax, 1
jge 0x490d46
cmp dword [esp + 0xa4], 0
je 0x490c74
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x84], eax
test eax, eax
je 0x490cb6
push 0x2c
lea ecx, [esp + 0xc8]
push 0
push ecx
call fcn.004c16a0
mov eax, dword [esp + 0x90]
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0xd4]
push edx
push eax
mov dword [esp + 0xdc], 0x28
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], 0x200001
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0xa0], eax
test eax, eax
je 0x490cb6
or ecx, 0xffffffff
cmp dword [esp + 0x64], ecx
jne 0x490a80
cmp dword [esp + 0x68], ecx
jne 0x490a80
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4909a6
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov eax, dword [esp + 0x3c]
mov edx, esi
neg edx
add edx, edx
add edx, edx
lea ecx, [ebx*4 - 4]
imul ecx, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x54], 0
jle 0x490995
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x3c]
lea edi, [ebx*4]
mov edx, eax
add eax, edi
mov dword [esp + 0x58], eax
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi + edx]
jne 0x49096f
inc dword [esp + 0x1c]
xor eax, eax
jmp 0x490979
mov byte [esp + 0x12], 0
mov eax, 0xffffff
mov edi, dword [esp + 0x2c]
mov dword [ecx + edi], eax
add ecx, 4
add edx, 4
dec ebx
jne 0x490960
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
add ecx, edx
dec dword [esp + 0x20]
mov dword [esp + 0x28], ecx
jne 0x490937
jmp 0x490cad
cmp dword [esp + 0x34], ecx
jne 0x4909bf
dec eax
neg eax
sbb eax, eax
and eax, 0xff000001
add eax, 0xffffff
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov eax, ecx
neg eax
add eax, eax
add eax, eax
lea esi, [ebx*4 - 4]
mov dword [esp + 0x60], eax
imul esi, ecx
mov dword [esp + 0x20], ebx
mov edi, edi
test ecx, ecx
jle 0x490a6f
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
add ecx, ecx
add ecx, ecx
mov eax, edx
add edx, ecx
mov ebx, esi
mov dword [esp + 0x58], edx
mov edi, edi
cmp dword [esp + 0x44], 1
jne 0x490a2f
mov ecx, dword [eax]
cmp ecx, dword [eax + edi]
jne 0x490a24
inc dword [esp + 0x1c]
jmp 0x490a50
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x12], 0
jmp 0x490a50
mov ecx, dword [eax + edi]
mov edx, dword [eax]
cmp edx, ecx
jne 0x490a42
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x490a50
cmp dword [esp + 0x44], 2
mov byte [esp + 0x12], 0
jne 0x490a50
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + edx], ecx
add ebx, 4
add eax, 4
dec dword [esp + 0x28]
jne 0x490a10
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
add esi, eax
dec dword [esp + 0x20]
jne 0x4909f0
jmp 0x490cad
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x490b56
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, ecx
neg eax
add eax, eax
add eax, eax
lea esi, [ebx*4 - 4]
mov dword [esp + 0x60], eax
imul esi, ecx
mov dword [esp + 0x40], ebx
test ecx, ecx
jle 0x490b45
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
add ecx, ecx
add ecx, ecx
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov edi, esi
mov ebx, dword [esp + 0x64]
cmp ebx, 0xffffffff
je 0x490af2
cmp ebx, dword [eax]
je 0x490afc
cmp ecx, 0xffffffff
je 0x490b09
cmp ecx, dword [eax + edx]
jne 0x490b09
mov ebx, dword [esp + 0x2c]
mov dword [edi + ebx], 0
jmp 0x490b31
mov ecx, dword [eax]
inc dword [esp + 0x50]
cmp ecx, dword [eax + edx]
jne 0x490b1c
inc dword [esp + 0x1c]
xor ecx, ecx
jmp 0x490b26
mov byte [esp + 0x12], 0
mov ecx, 0xffffff
mov ebx, dword [esp + 0x2c]
mov dword [edi + ebx], ecx
mov ecx, dword [esp + 0x68]
add edi, 4
add eax, 4
dec dword [esp + 0x28]
jne 0x490ae5
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
add esi, eax
dec dword [esp + 0x40]
jne 0x490abf
jmp 0x490cad
cmp dword [esp + 0x34], ecx
jne 0x490b6f
dec eax
neg eax
sbb eax, eax
and eax, 0xff000001
add eax, 0xffffff
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov edx, dword [esp + 0x3c]
mov eax, esi
neg eax
add eax, eax
add eax, eax
mov dword [esp + 0x60], eax
lea eax, [ebx*4 - 4]
imul eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ebx
test esi, esi
jle 0x490c5b
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
lea edx, [esi*4]
mov eax, ecx
add ecx, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], ecx
mov edx, 1
mov ecx, dword [esp + 0x64]
cmp ecx, 0xffffffff
je 0x490bdf
cmp ecx, dword [eax]
je 0x490bed
mov ecx, dword [esp + 0x68]
cmp ecx, 0xffffffff
je 0x490bfa
cmp ecx, dword [eax + edi]
jne 0x490bfa
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [ebx + ecx], edx
jmp 0x490c44
add dword [esp + 0x50], edx
cmp dword [esp + 0x44], edx
jne 0x490c1c
mov ecx, dword [eax]
cmp ecx, dword [eax + edi]
jne 0x490c11
inc dword [esp + 0x1c]
jmp 0x490c3d
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x12], 0
jmp 0x490c3d
mov ecx, dword [eax + edi]
mov edx, dword [eax]
cmp edx, ecx
jne 0x490c2f
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x490c3d
cmp dword [esp + 0x44], 2
mov byte [esp + 0x12], 0
jne 0x490c3d
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + edx], ecx
mov edx, 1
add ebx, 4
add eax, 4
sub dword [esp + 0x40], edx
jne 0x490bd2
jmp 0x490c60
mov edx, 1
mov eax, dword [esp + 0x60]
add dword [esp + 0x20], eax
sub dword [esp + 0x4c], edx
jne 0x490ba2
jmp 0x490cad
mov ebx, dword [esp + 0x64]
cmp ebx, 0xffffffff
jne 0x490ce8
cmp dword [esp + 0x68], ebx
jne 0x490ce8
xor ecx, ecx
mov byte [esp + 0x12], 1
test edi, edi
jle 0x490cad
mov eax, dword [esp + 0x3c]
sub edx, eax
mov esi, ecx
mov ebx, dword [eax]
cmp ebx, dword [edx + eax]
je 0x490cdd
cmp dword [esp + 0x78], 0
mov byte [esp + 0x12], 0
jne 0x490cde
mov dword [esp + 0x1c], esi
mov byte [esp + 0x11], 1
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x80]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edx
call esi
mov eax, dword [esp + 0x84]
test eax, eax
je 0x491872
push eax
call esi
jmp 0x491872
inc esi
inc ecx
add eax, 4
cmp ecx, edi
jl 0x490c96
jmp 0x490ca9
xor ecx, ecx
mov byte [esp + 0x12], 1
test edi, edi
jle 0x490cad
mov eax, dword [esp + 0x3c]
sub edx, eax
mov esi, ecx
jmp 0x490d04
mov ebx, dword [esp + 0x64]
cmp ebx, 0xffffffff
je 0x490d0d
cmp ebx, dword [eax]
je 0x490d35
mov ebx, dword [esp + 0x68]
cmp ebx, 0xffffffff
je 0x490d1b
cmp ebx, dword [edx + eax]
je 0x490d35
mov ebx, dword [eax]
inc esi
cmp ebx, dword [edx + eax]
je 0x490d31
cmp dword [esp + 0x78], 0
mov byte [esp + 0x12], 0
je 0x490d3d
jmp 0x490d35
inc dword [esp + 0x1c]
inc ecx
add eax, 4
cmp ecx, edi
jl 0x490d00
mov dword [esp + 0x50], esi
jmp 0x490cad
cmp dword [esp + 0xa4], 0
je 0x4915bc
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x84], eax
test eax, eax
je 0x490cb6
push 0x2c
lea ecx, [esp + 0x178]
push 0
push ecx
call fcn.004c16a0
mov eax, dword [esp + 0x90]
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
push 0
lea edx, [esp + 0x184]
push edx
push eax
mov dword [esp + 0x18c], 0x28
mov dword [esp + 0x190], esi
mov dword [esp + 0x194], ebx
mov dword [esp + 0x198], 0x200001
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0xa0], eax
test eax, eax
je 0x490cb6
or ecx, 0xffffffff
cmp dword [esp + 0x64], ecx
jne 0x4911ad
cmp dword [esp + 0x68], ecx
jne 0x4911ad
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x490f9a
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov ecx, dword [esp + 0x38]
mov eax, esi
neg eax
add eax, eax
add eax, eax
mov dword [esp + 0x60], eax
lea eax, [ebx*4 - 4]
imul eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], ebx
lea ecx, [ecx]
cmp dword [esp + 0x54], 0
jle 0x490f83
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x28]
add ecx, ecx
add ecx, ecx
mov esi, edx
add edx, ecx
mov dword [esp + 0x28], edx
jmp 0x490e70
mov edi, dword [esp + 0x30]
mov cl, byte [esi + edi + 2]
mov dl, byte [esi + edi]
mov bl, byte [esi + edi + 1]
movzx edi, cl
mov byte [esp + 0x11], dl
cmp eax, edi
jle 0x490e91
mov byte [esp + 0x16], 0
jmp 0x490e99
mov dl, cl
sub dl, al
mov byte [esp + 0x16], dl
movzx edx, bl
cmp eax, edx
jle 0x490ea7
mov byte [esp + 0x15], 0
jmp 0x490eaf
mov dl, bl
sub dl, al
mov byte [esp + 0x15], dl
movzx edx, byte [esp + 0x11]
mov dword [esp + 0x18], edx
cmp eax, edx
jle 0x490ec3
mov byte [esp + 0x14], 0
jmp 0x490ecd
mov dl, byte [esp + 0x11]
sub dl, al
mov byte [esp + 0x14], dl
mov edx, 0xff
sub edx, edi
cmp eax, edx
jle 0x490edf
mov byte [esp + 0x17], 0xff
jmp 0x490ee6
lea edx, [ecx + eax]
mov byte [esp + 0x17], dl
movzx ecx, bl
mov edx, 0xff
sub edx, ecx
cmp eax, edx
jle 0x490efb
mov byte [esp + 0x13], 0xff
jmp 0x490f02
lea ecx, [ebx + eax]
mov byte [esp + 0x13], cl
mov ecx, 0xff
sub ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x490f16
mov byte [esp + 0x11], 0xff
jmp 0x490f20
mov cl, al
add cl, byte [esp + 0x11]
mov byte [esp + 0x11], cl
mov cl, byte [esi + 2]
mov bl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x18], bl
cmp cl, byte [esp + 0x16]
jb 0x490f5a
cmp cl, byte [esp + 0x17]
ja 0x490f5a
cmp dl, byte [esp + 0x15]
jb 0x490f5a
cmp dl, byte [esp + 0x13]
ja 0x490f5a
mov cl, bl
cmp cl, byte [esp + 0x14]
jb 0x490f5a
cmp cl, byte [esp + 0x11]
ja 0x490f5a
inc dword [esp + 0x1c]
xor ecx, ecx
jmp 0x490f64
mov byte [esp + 0x12], 0
mov ecx, 0xffffff
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x4c]
mov dword [edx + edi], ecx
add edx, 4
add esi, 4
dec dword [esp + 0x44]
mov dword [esp + 0x40], edx
jne 0x490e70
mov edx, dword [esp + 0x60]
add dword [esp + 0x20], edx
dec dword [esp + 0x34]
jne 0x490e30
jmp 0x490cad
cmp dword [esp + 0x34], ecx
jne 0x490fb3
dec eax
neg eax
sbb eax, eax
and eax, 0xff000001
add eax, 0xffffff
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, esi
neg edx
lea eax, [esi*4]
mov dword [esp + 0x28], eax
add edx, edx
add edx, edx
lea eax, [ebx*4 - 4]
imul eax, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x54], 0
jle 0x491198
mov esi, dword [esp + 0x3c]
sub esi, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, edi
add edi, dword [esp + 0x28]
mov dword [esp + 0x30], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x88], edi
movzx ebx, byte [eax + esi + 1]
mov dl, byte [eax + esi + 2]
mov byte [esp + 0x18], bl
mov bl, byte [eax + esi]
movzx esi, dl
mov byte [esp + 0x11], bl
cmp ecx, esi
jle 0x491043
mov byte [esp + 0x16], 0
jmp 0x49104d
mov bl, byte [esp + 0x11]
sub dl, cl
mov byte [esp + 0x16], dl
mov dl, byte [esp + 0x18]
movzx edi, dl
mov dword [esp + 0x40], edi
cmp ecx, edi
jle 0x491063
mov byte [esp + 0x15], 0
jmp 0x491069
sub dl, cl
mov byte [esp + 0x15], dl
movzx edi, bl
cmp ecx, edi
jle 0x491077
mov byte [esp + 0x14], 0
jmp 0x49107f
mov dl, bl
sub dl, cl
mov byte [esp + 0x14], dl
mov edx, 0xff
sub edx, esi
mov esi, dword [esp + 0x30]
cmp ecx, edx
jle 0x491095
mov byte [esp + 0x17], 0xff
jmp 0x49109f
mov dl, cl
add dl, byte [eax + esi + 2]
mov byte [esp + 0x17], dl
mov edx, 0xff
sub edx, dword [esp + 0x40]
cmp ecx, edx
jle 0x4910b3
mov byte [esp + 0x13], 0xff
jmp 0x4910bd
mov dl, cl
add dl, byte [eax + esi + 1]
mov byte [esp + 0x13], dl
mov edx, 0xff
sub edx, edi
cmp ecx, edx
jle 0x4910cf
mov byte [esp + 0x11], 0xff
jmp 0x4910d6
add cl, byte [eax + esi]
mov byte [esp + 0x11], cl
mov edi, dword [esp + 0x44]
mov bl, byte [eax]
mov cl, byte [eax + 2]
mov dl, byte [eax + 1]
mov byte [esp + 0x18], bl
cmp edi, 1
jne 0x491125
cmp cl, byte [esp + 0x16]
jb 0x49111a
cmp cl, byte [esp + 0x17]
ja 0x49111a
cmp dl, byte [esp + 0x15]
jb 0x49111a
cmp dl, byte [esp + 0x13]
ja 0x49111a
mov cl, bl
cmp cl, byte [esp + 0x14]
jb 0x49111a
cmp cl, byte [esp + 0x11]
ja 0x49111a
inc dword [esp + 0x1c]
mov ecx, dword [eax + esi]
jmp 0x491168
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x12], 0
jmp 0x491168
cmp cl, byte [esp + 0x16]
jb 0x491157
cmp cl, byte [esp + 0x17]
ja 0x491157
cmp dl, byte [esp + 0x15]
jb 0x491157
cmp dl, byte [esp + 0x13]
ja 0x491157
mov cl, byte [esp + 0x18]
cmp cl, byte [esp + 0x14]
jb 0x491157
cmp cl, byte [esp + 0x11]
ja 0x491157
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x491168
mov byte [esp + 0x12], 0
cmp edi, 2
jne 0x491166
mov ecx, dword [eax + esi]
jmp 0x491168
mov ecx, dword [eax]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x20], 4
add eax, 4
dec dword [esp + 0x74]
mov dword [edi + edx], ecx
mov ecx, dword [esp + 0x2c]
jne 0x491021
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x60]
add eax, edx
dec dword [esp + 0x58]
mov dword [esp + 0x70], eax
jne 0x490ff1
jmp 0x490cad
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x491385
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, esi
neg eax
add eax, eax
add eax, eax
lea ecx, [ebx*4 - 4]
imul ecx, esi
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x74], ebx
cmp dword [esp + 0x54], 0
jle 0x491372
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], edx
add edx, edx
add edx, edx
add dword [esp + 0x20], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x58], esi
mov dword [esp + 0x30], edi
mov ebx, dword [esp + 0x68]
cmp edx, 0xffffffff
je 0x491235
cmp edx, dword [eax + edi]
je 0x49123e
cmp ebx, 0xffffffff
je 0x49124e
cmp ebx, dword [eax]
jne 0x49124e
mov ebx, dword [esp + 0x4c]
mov dword [ebx + esi], 0
jmp 0x49135a
movzx ebx, byte [eax + edi + 1]
mov dl, byte [eax + edi + 2]
inc dword [esp + 0x50]
movzx esi, dl
mov byte [esp + 0x18], bl
mov bl, byte [eax + edi]
mov byte [esp + 0x11], bl
cmp ecx, esi
jle 0x491274
mov byte [esp + 0x16], 0
jmp 0x49127e
mov bl, byte [esp + 0x11]
sub dl, cl
mov byte [esp + 0x16], dl
mov dl, byte [esp + 0x18]
movzx edi, dl
mov dword [esp + 0x40], edi
cmp ecx, edi
jle 0x491294
mov byte [esp + 0x15], 0
jmp 0x49129a
sub dl, cl
mov byte [esp + 0x15], dl
movzx edx, bl
mov dword [esp + 0x18], edx
cmp ecx, edx
jle 0x4912ac
mov byte [esp + 0x14], 0
jmp 0x4912b2
sub bl, cl
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x30]
mov edx, 0xff
sub edx, esi
cmp ecx, edx
jle 0x4912c8
mov byte [esp + 0x17], 0xff
jmp 0x4912d2
mov dl, cl
add dl, byte [eax + edi + 2]
mov byte [esp + 0x17], dl
mov edx, 0xff
sub edx, dword [esp + 0x40]
cmp ecx, edx
jle 0x4912e6
mov byte [esp + 0x13], 0xff
jmp 0x4912f0
mov dl, cl
add dl, byte [eax + edi + 1]
mov byte [esp + 0x13], dl
mov edx, 0xff
sub edx, dword [esp + 0x18]
cmp ecx, edx
jle 0x491304
mov byte [esp + 0x11], 0xff
jmp 0x49130d
mov dl, cl
add dl, byte [eax + edi]
mov byte [esp + 0x11], dl
mov dl, byte [eax + 2]
cmp dl, byte [esp + 0x16]
jb 0x491341
cmp dl, byte [esp + 0x17]
ja 0x491341
mov dl, byte [eax + 1]
cmp dl, byte [esp + 0x15]
jb 0x491341
cmp dl, byte [esp + 0x13]
ja 0x491341
mov dl, byte [eax]
cmp dl, byte [esp + 0x14]
jb 0x491341
cmp dl, byte [esp + 0x11]
ja 0x491341
inc dword [esp + 0x1c]
xor edx, edx
jmp 0x49134b
mov byte [esp + 0x12], 0
mov edx, 0xffffff
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov dword [ebx + esi], edx
mov edx, dword [esp + 0x64]
add esi, 4
add eax, 4
dec dword [esp + 0x70]
mov dword [esp + 0x58], esi
jne 0x491227
mov eax, dword [esp + 0x60]
add dword [esp + 0x44], eax
dec dword [esp + 0x74]
jne 0x4911f0
jmp 0x490cad
cmp dword [esp + 0x34], ecx
jne 0x49139e
dec eax
neg eax
sbb eax, eax
and eax, 0xff000001
add eax, 0xffffff
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], 1
test ebx, ebx
jle 0x490cad
mov ecx, dword [esp + 0x38]
lea eax, [esi*4]
mov dword [esp + 0x28], eax
mov eax, esi
neg eax
add eax, eax
add eax, eax
mov dword [esp + 0x60], eax
lea eax, [ebx*4 - 4]
imul eax, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], ebx
cmp dword [esp + 0x54], 0
jle 0x4915a5
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x38]
mov eax, ecx
add ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], edx
mov dword [esp + 0x58], ecx
lea ecx, [ecx]
mov ecx, dword [esp + 0x64]
cmp ecx, 0xffffffff
je 0x49141e
cmp ecx, dword [eax + edi]
je 0x49142b
mov ecx, dword [esp + 0x68]
cmp ecx, 0xffffffff
je 0x49143f
cmp ecx, dword [eax]
jne 0x49143f
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esi + ecx], edx
jmp 0x491593
mov cl, byte [eax + edi + 2]
inc dword [esp + 0x50]
movzx esi, cl
cmp dword [esp + 0x2c], esi
jle 0x491457
mov byte [esp + 0x16], 0
jmp 0x491461
mov dl, cl
sub dl, byte [esp + 0x2c]
mov byte [esp + 0x16], dl
mov dl, byte [eax + edi + 1]
movzx ebx, dl
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x2c], ebx
jle 0x491479
mov byte [esp + 0x15], 0
jmp 0x491481
sub dl, byte [esp + 0x2c]
mov byte [esp + 0x15], dl
mov dl, byte [eax + edi]
movzx ebx, dl
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x2c], ebx
jle 0x491498
mov byte [esp + 0x14], 0
jmp 0x4914a0
sub dl, byte [esp + 0x2c]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x2c]
mov ebx, 0xff
sub ebx, esi
cmp edx, ebx
jle 0x4914b6
mov byte [esp + 0x17], 0xff
jmp 0x4914bd
lea ebx, [ecx + edx]
mov byte [esp + 0x17], bl
mov ecx, 0xff
sub ecx, dword [esp + 0x40]
cmp edx, ecx
jle 0x4914d1
mov byte [esp + 0x13], 0xff
jmp 0x4914db
mov cl, dl
add cl, byte [eax + edi + 1]
mov byte [esp + 0x13], cl
mov ecx, 0xff
sub ecx, dword [esp + 0x18]
cmp edx, ecx
jle 0x4914ef
mov byte [esp + 0x11], 0xff
jmp 0x4914f6
add dl, byte [eax + edi]
mov byte [esp + 0x11], dl
mov esi, dword [esp + 0x44]
mov dl, byte [eax]
mov cl, byte [eax + 2]
mov bl, byte [eax + 1]
mov byte [esp + 0x18], dl
cmp esi, 1
jne 0x491545
cmp cl, byte [esp + 0x16]
jb 0x49153a
cmp cl, byte [esp + 0x17]
ja 0x49153a
cmp bl, byte [esp + 0x15]
jb 0x49153a
cmp bl, byte [esp + 0x13]
ja 0x49153a
mov cl, dl
cmp cl, byte [esp + 0x14]
jb 0x49153a
cmp cl, byte [esp + 0x11]
ja 0x49153a
inc dword [esp + 0x1c]
mov ecx, dword [eax + edi]
jmp 0x491588
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x12], 0
jmp 0x491588
cmp cl, byte [esp + 0x16]
jb 0x491577
cmp cl, byte [esp + 0x17]
ja 0x491577
cmp bl, byte [esp + 0x15]
jb 0x491577
cmp bl, byte [esp + 0x13]
ja 0x491577
mov cl, byte [esp + 0x18]
cmp cl, byte [esp + 0x14]
jb 0x491577
cmp cl, byte [esp + 0x11]
ja 0x491577
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x491588
mov byte [esp + 0x12], 0
cmp esi, 2
jne 0x491586
mov ecx, dword [eax + edi]
jmp 0x491588
mov ecx, dword [eax]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
mov dword [esi + edx], ecx
add dword [esp + 0x30], 4
add eax, 4
dec dword [esp + 0x70]
jne 0x491410
mov eax, dword [esp + 0x60]
add dword [esp + 0x20], eax
dec dword [esp + 0x74]
jne 0x4913dc
jmp 0x490cad
or ecx, 0xffffffff
cmp dword [esp + 0x64], ecx
jne 0x491713
cmp dword [esp + 0x68], ecx
jne 0x491713
mov byte [esp + 0x12], 1
mov dword [esp + 0x40], 0
test edi, edi
jle 0x490cad
mov edi, dword [esp + 0x3c]
sub edi, edx
mov esi, edx
mov dword [esp + 0x30], edi
jmp 0x491604
mov edi, dword [esp + 0x30]
mov cl, byte [esi + edi + 2]
mov dl, byte [esi + edi]
mov bl, byte [esi + edi + 1]
movzx edi, cl
mov byte [esp + 0x11], dl
cmp eax, edi
jle 0x491621
mov byte [esp + 0x16], 0
jmp 0x491629
mov dl, cl
sub dl, al
mov byte [esp + 0x16], dl
movzx edx, bl
cmp eax, edx
jle 0x491637
mov byte [esp + 0x15], 0
jmp 0x49163f
mov dl, bl
sub dl, al
mov byte [esp + 0x15], dl
movzx edx, byte [esp + 0x11]
mov dword [esp + 0x18], edx
cmp eax, edx
jle 0x491653
mov byte [esp + 0x14], 0
jmp 0x49165d
mov dl, byte [esp + 0x11]
sub dl, al
mov byte [esp + 0x14], dl
mov edx, 0xff
sub edx, edi
cmp eax, edx
jle 0x49166f
mov byte [esp + 0x17], 0xff
jmp 0x491676
lea edx, [ecx + eax]
mov byte [esp + 0x17], dl
movzx ecx, bl
mov edx, 0xff
sub edx, ecx
cmp eax, edx
jle 0x49168b
mov byte [esp + 0x13], 0xff
jmp 0x491692
lea ecx, [ebx + eax]
mov byte [esp + 0x13], cl
mov ecx, 0xff
sub ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x4916a6
mov byte [esp + 0x11], 0xff
jmp 0x4916b0
mov cl, al
add cl, byte [esp + 0x11]
mov byte [esp + 0x11], cl
mov cl, byte [esi + 2]
mov bl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x18], bl
cmp cl, byte [esp + 0x16]
jb 0x4916e8
cmp cl, byte [esp + 0x17]
ja 0x4916e8
cmp dl, byte [esp + 0x15]
jb 0x4916e8
cmp dl, byte [esp + 0x13]
ja 0x4916e8
mov cl, bl
cmp cl, byte [esp + 0x14]
jb 0x4916e8
cmp cl, byte [esp + 0x11]
ja 0x4916e8
inc dword [esp + 0x1c]
jmp 0x4916f8
cmp dword [esp + 0x78], 0
mov byte [esp + 0x12], 0
je 0x490cad
mov ecx, dword [esp + 0x40]
inc ecx
add esi, 4
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x5c]
jl 0x491600
jmp 0x490cad
mov byte [esp + 0x12], 1
mov dword [esp + 0x40], 0
test edi, edi
jle 0x490cad
mov edi, dword [esp + 0x3c]
sub edi, edx
mov esi, edx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x64]
cmp ecx, 0xffffffff
je 0x491746
cmp ecx, dword [esi + edi]
je 0x491853
mov ecx, dword [esp + 0x68]
cmp ecx, 0xffffffff
je 0x491757
cmp ecx, dword [esi]
je 0x491853
mov cl, byte [esi + edi + 2]
mov dl, byte [esi + edi]
mov bl, byte [esi + edi + 1]
inc dword [esp + 0x50]
movzx edi, cl
mov byte [esp + 0x11], dl
cmp eax, edi
jle 0x491778
mov byte [esp + 0x16], 0
jmp 0x491780
mov dl, cl
sub dl, al
mov byte [esp + 0x16], dl
movzx edx, bl
cmp eax, edx
jle 0x49178e
mov byte [esp + 0x15], 0
jmp 0x491796
mov dl, bl
sub dl, al
mov byte [esp + 0x15], dl
movzx edx, byte [esp + 0x11]
mov dword [esp + 0x18], edx
cmp eax, edx
jle 0x4917aa
mov byte [esp + 0x14], 0
jmp 0x4917b4
mov dl, byte [esp + 0x11]
sub dl, al
mov byte [esp + 0x14], dl
mov edx, 0xff
sub edx, edi
cmp eax, edx
jle 0x4917c6
mov byte [esp + 0x17], 0xff
jmp 0x4917cd
lea edx, [ecx + eax]
mov byte [esp + 0x17], dl
movzx ecx, bl
mov edx, 0xff
sub edx, ecx
cmp eax, edx
jle 0x4917e2
mov byte [esp + 0x13], 0xff
jmp 0x4917e9
lea ecx, [ebx + eax]
mov byte [esp + 0x13], cl
mov ecx, 0xff
sub ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x4917fd
mov byte [esp + 0x11], 0xff
jmp 0x491807
mov cl, al
add cl, byte [esp + 0x11]
mov byte [esp + 0x11], cl
mov cl, byte [esi + 2]
mov bl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x18], bl
cmp cl, byte [esp + 0x16]
jb 0x49183f
cmp cl, byte [esp + 0x17]
ja 0x49183f
cmp dl, byte [esp + 0x15]
jb 0x49183f
cmp dl, byte [esp + 0x13]
ja 0x49183f
mov cl, bl
cmp cl, byte [esp + 0x14]
jb 0x49183f
cmp cl, byte [esp + 0x11]
ja 0x49183f
inc dword [esp + 0x1c]
jmp 0x49184f
cmp dword [esp + 0x78], 0
mov byte [esp + 0x12], 0
je 0x490cad
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
inc ecx
add esi, 4
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x5c]
jl 0x491734
jmp 0x490cad
mov edi, dword [esp + 0x5c]
cmp byte [esp + 0x6f], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x491889
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x491889
push eax
call esi
cmp byte [esp + 0x6e], 0
je 0x49189a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49189a
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4918ab
push eax
call fcn.004ba14c
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4918bc
push eax
call fcn.004ba14c
add esp, 4
cmp byte [esp + 0x11], 0
je 0x491b4f
cmp byte [esp + 0x4b], 0
jne 0x4918e1
or eax, 0xffffffff
cmp dword [esp + 0x64], eax
jne 0x4918e1
cmp dword [esp + 0x68], eax
jne 0x4918e1
mov dword [esp + 0x50], edi
cmp dword [esp + 0x78], 0
je 0x491aa9
fld qword [esp + 0xb8]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x491931
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jns 0x491910
fadd qword [0x4e5890]
mov ecx, dword [esp + 0x50]
fild dword [esp + 0x50]
test ecx, ecx
jns 0x491922
fadd qword [0x4e5890]
fdivp st(1)
fmul qword [0x4e58c0]
fstp qword [esp + 0xb8]
lea edx, [esp + 0xf0]
lea eax, [esp + 0x100]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0x110]
lea edx, [esp + 0x120]
lea eax, [esp + 0x130]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0x140]
lea edx, [esp + 0x150]
lea eax, [esp + 0x160]
xor esi, esi
push 0x4e47e4
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xfc], esi
call fcn.0049be50
mov ecx, dword [esp + 0xac]
add esp, 4
mov edi, 1
push 0x4e47f8
mov dword [esp + 0xf4], eax
mov dword [esp + 0x10c], edi
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], esi
mov dword [esp + 0x11c], esi
call fcn.0049be50
mov edx, dword [esp + 0x54]
add esp, 4
push 0x4e480c
mov dword [esp + 0x114], eax
mov dword [esp + 0x12c], edi
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], esi
mov dword [esp + 0x13c], esi
call fcn.0049be50
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x20]
add esp, 4
push 0x4e4820
mov dword [esp + 0x14c], edi
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], esi
mov dword [esp + 0x15c], esi
call fcn.0049be50
fld qword [esp + 0xbc]
add esp, 4
fstp qword [esp + 0x160]
lea ecx, [esp + 0xc4]
push 8
push ecx
mov dword [esp + 0x158], eax
mov dword [esp + 0x170], 2
call fcn.004962d0
add esp, 8
cmp eax, esi
je 0x491aa9
mov ecx, dword [esp + 0x78]
mov edi, eax
call fcn.004a5f60
test eax, eax
jne 0x491aa9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x491ac7
mov eax, dword [esp + 0xa0]
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.00401570
cmp dword [esp + 0x7c], 0
je 0x491b31
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x7c]
fild dword [esp + 0x1c]
test edx, edx
jns 0x491ae4
fadd qword [0x4e5890]
mov eax, dword [esp + 0x50]
fild dword [esp + 0x50]
test eax, eax
jns 0x491af6
fadd qword [0x4e5890]
fdivp st(1)
fmul qword [0x4e58c0]
fcompp
fnstsw ax
test ah, 5
jp 0x491b1c
mov ecx, dword [ebp + 8]
mov al, 1
push eax
push ecx
call fcn.0042d120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
xor al, al
push eax
push ecx
call fcn.0042d120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x12], 0
mov ecx, dword [ebp + 8]
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x27], 0
mov eax, 0x4d9560
jne 0x491b60
mov eax, 0x4d9598
mov edx, dword [0x4ec48c]
test byte [edx + 0xe0], 1
jne 0x491b8a
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4f13d8]
push eax
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push 0x4d6959
push 0
push eax
call fcn.0042d070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10