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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je case.0x436a52.5
mov ebx, dword [esi]
test ebx, ebx
je case.0x436a52.5
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
movsx eax, word [esi + 0x14]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsx edi, ax
movsx eax, word [esi + 8]
imul eax, edi
imul eax, dword [esp + 0x1c]
imul eax, ecx
mov dword [esp + 0x18], eax
movsx eax, word [esi + 0x16]
dec eax
cmp eax, 8
ja case.0x436a52.5
jmp dword [eax*4 + 0x437344]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
jle 0x436af0
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
jle 0x436adf
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
add edx, ecx
push edi
push edx
mov ecx, esi
call fcn.00435b20
cmp word [esi + 0x14], 0x10
jne 0x436aa9
shr eax, 8
and eax, 0xff
mov edx, dword [esp + 0x28]
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add edx, edi
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], edx
jl 0x436a8d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x436a83
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x437328
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push ebx
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, eax
je 0x436c04
cmp dword [esi + 0x18], 0x300
jne 0x436c04
cmp word [esi + 0x20], ax
jle 0x436c04
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
cmp ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
jle 0x436c04
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
add eax, edx
push 1
push eax
mov ecx, esi
call fcn.00435b20
mov edi, eax
mov eax, dword [esi + 0x1c]
mov ecx, edi
push 1
add ecx, eax
push ecx
mov ecx, esi
call fcn.00435b20
mov edx, dword [esi + 0x1c]
mov ebx, eax
push 1
mov ecx, esi
lea eax, [edi + edx + 0x100]
push eax
call fcn.00435b20
mov ecx, dword [esi + 0x1c]
push 1
mov dword [esp + 0x48], eax
lea edx, [edi + ecx + 0x200]
mov ecx, esi
push edx
call fcn.00435b20
xor ecx, ecx
mov edx, dword [esp + 0x28]
mov ch, al
mov edi, dword [esp + 0x2c]
mov cl, byte [esp + 0x44]
mov eax, dword [esp + 0x10]
shl ecx, 8
and ebx, 0xff
or ecx, ebx
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x1c]
inc edi
cmp eax, edi
mov dword [esp + 0x2c], edi
jg 0x436beb
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x436b50
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
movsx eax, word [esi + 0x14]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
cmp edi, 2
jne 0x436c51
mov edi, 1
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
jle 0x436d11
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
add eax, edx
push edi
push eax
mov ecx, esi
call fcn.00435b20
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ebx, eax
push edi
lea eax, [edi + ecx]
mov ecx, esi
add eax, edx
push eax
call fcn.00435b20
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push edi
lea eax, [eax + edi*2]
add eax, ecx
mov ecx, esi
push eax
call fcn.00435b20
xor edx, edx
mov ecx, dword [esp + 0x10]
mov dh, al
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x44]
and ebx, 0xff
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x2c]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x1c]
inc ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
jg 0x436cf4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
inc eax
mov dword [esp + 0x28], eax
movsx edx, word [esi + 8]
imul edx, edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x436c6b
mov eax, dword [esp + 0x14]
push eax
jmp 0x437328
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movsx ecx, word [esi + 0x14]
fld qword [0x4ecc48]
mov dword [esp + 0x44], ecx
xor ebx, ebx
fild dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.MSVCRT.dll__CIpow
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
fstp qword [esp + 0x50]
test eax, eax
jle 0x437323
mov eax, dword [ebp + 8]
mov ecx, edi
lea edx, [eax + edi*2]
add ecx, edx
lea edx, [edi + eax]
mov dword [esp + 0x44], ecx
lea ecx, [eax + edi*2]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
jmp 0x436d91
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
push edi
add ecx, eax
push ecx
mov ecx, esi
call fcn.00435b20
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x34]
fild dword [esp + 0x48]
push edi
push edx
mov ecx, esi
fdiv qword [esp + 0x58]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x70]
call fcn.00435b20
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
fild dword [esp + 0x48]
push edi
push eax
mov ecx, esi
fdiv qword [esp + 0x58]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x68]
call fcn.00435b20
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
fild dword [esp + 0x48]
push edi
push ecx
mov ecx, esi
fdiv qword [esp + 0x58]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x60]
call fcn.00435b20
mov dword [esp + 0x48], eax
lea edx, [esp + 0x28]
fild dword [esp + 0x48]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
fdiv qword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x68]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00435dc0
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x436e6f
xor eax, eax
jmp 0x436e7b
cmp eax, 0xff
jle 0x436e7f
mov eax, 0xff
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jge 0x436e91
mov dword [esp + 0x20], 0
jmp 0x436ea1
cmp ecx, 0xff
jle 0x436ea1
mov dword [esp + 0x20], 0xff
mov ecx, dword [esp + 0x28]
test ecx, ecx
jge 0x436ead
xor ecx, ecx
jmp 0x436eba
cmp ecx, 0xff
jle 0x436ebe
mov ecx, 0xff
mov dword [esp + 0x28], ecx
xor edx, edx
and eax, 0xff
mov dh, cl
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x20]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x1c]
inc ebx
cmp eax, ebx
jg 0x436ef6
mov eax, dword [esp + 0x2c]
xor ebx, ebx
inc eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x34]
lea eax, [edi*4]
mov ecx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x38]
add edx, eax
add ecx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], edx
jl 0x436d8e
jmp 0x437323
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [0x4ecc48]
mov dword [esp + 0x14], eax
xor ebx, ebx
movsx eax, word [esi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], ebx
fild dword [esp + 0x48]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
call sub.MSVCRT.dll__CIpow
cmp word [esi + 8], 3
fstp qword [esp + 0x50]
jl 0x437142
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x437142
mov ecx, dword [ebp + 8]
push edi
lea edx, [ebx + ecx]
mov ecx, esi
push edx
call fcn.00435b20
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
fild dword [esp + 0x48]
add eax, edi
push edi
add eax, ebx
mov ecx, esi
fdiv qword [esp + 0x54]
push eax
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x60]
call fcn.00435b20
mov dword [esp + 0x48], eax
mov ecx, dword [ebp + 8]
fild dword [esp + 0x48]
lea eax, [ecx + edi*2]
push edi
add eax, ebx
mov ecx, esi
fdiv qword [esp + 0x54]
push eax
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x68]
call fcn.00435b20
mov dword [esp + 0x48], eax
cmp word [esi + 8], 4
fild dword [esp + 0x48]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
fdiv qword [esp + 0x50]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x68]
jne 0x43704a
lea edx, [ebx + edi*2]
mov eax, edi
add eax, edx
mov edx, dword [ebp + 8]
add eax, edx
push edi
push eax
mov ecx, esi
call fcn.00435b20
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv qword [esp + 0x50]
fsubr qword [0x4ec6d8]
fstp qword [esp + 0x38]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00435dc0
mov eax, dword [esp + 0x28]
test eax, eax
jge 0x437094
xor eax, eax
jmp 0x4370a0
cmp eax, 0xff
jle 0x4370a4
mov eax, 0xff
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jge 0x4370b6
mov dword [esp + 0x20], 0
jmp 0x4370c6
cmp ecx, 0xff
jle 0x4370c6
mov dword [esp + 0x20], 0xff
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x4370d2
xor ecx, ecx
jmp 0x4370df
cmp ecx, 0xff
jle 0x4370e3
mov ecx, 0xff
mov dword [esp + 0x24], ecx
xor edx, edx
and eax, 0xff
mov dh, cl
mov ecx, dword [esp + 0x2c]
mov dl, byte [esp + 0x20]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc eax
cmp ecx, eax
mov dword [esp + 0x2c], eax
jg 0x43712d
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], 0
inc eax
mov dword [esp + 0x44], eax
movsx eax, word [esi + 8]
imul eax, edi
add ebx, eax
mov eax, dword [esp + 0x18]
cmp ebx, eax
jl 0x436f96
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x437328
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movsx edx, word [esi + 0x14]
fld qword [0x4ecc48]
mov dword [esp + 0x48], edx
xor ebx, ebx
fild dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
call sub.MSVCRT.dll__CIpow
fld st(0)
fmul qword [0x4ed370]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
cmp eax, ebx
fstp qword [esp + 0x68]
fmul qword [0x4ef008]
fst qword [esp + 0x60]
fstp qword [esp + 0x58]
jle 0x437323
mov eax, dword [ebp + 8]
lea ecx, [eax + edi*2]
lea edx, [edi + eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
jmp 0x4371d1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
push edi
add ecx, eax
push ecx
mov ecx, esi
call fcn.00435b20
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv qword [esp + 0x68]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x30]
push edi
push edx
mov ecx, esi
mov ebx, eax
call fcn.00435b20
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv qword [esp + 0x60]
fsub qword [0x4ef000]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.00435b20
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv qword [esp + 0x58]
fsub qword [0x4ef000]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x58]
push ecx
push eax
push edx
push ebx
mov ecx, esi
call fcn.00435cb0
mov eax, dword [esp + 0x2c]
test eax, eax
jge 0x437268
xor eax, eax
jmp 0x437274
cmp eax, 0xff
jle 0x437278
mov eax, 0xff
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
test edx, edx
jge 0x437284
xor edx, edx
jmp 0x437291
cmp edx, 0xff
jle 0x437295
mov edx, 0xff
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x4372a1
xor ecx, ecx
jmp 0x4372ae
cmp ecx, 0xff
jle 0x4372b2
mov ecx, 0xff
mov dword [esp + 0x24], ecx
xor ebx, ebx
and eax, 0xff
mov bh, cl
mov ecx, dword [esp + 0x10]
mov bl, dl
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x48]
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x1c]
inc ebx
cmp eax, ebx
mov dword [esp + 0x44], ebx
jg 0x4372f6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], 0
inc eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
lea eax, [edi + edi*2]
add ecx, eax
add ebx, eax
add edx, eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edx
jl 0x4371ce
mov edx, dword [esp + 0x14]
push edx
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4