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

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
sub esp, 0x5c
cmp ecx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
je 0x408d35
cmp ecx, edx
jge 0x408b8e
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x408bba
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], edx
mov edx, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x94]
cmp ecx, eax
jge 0x408bf8
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + 0x8c]
mov ebx, ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ecx
jmp 0x408c26
mov ebx, eax
mov eax, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x5c], ecx
mov esi, ebp
mov ecx, dword [esp + 0xa0]
dec ecx
test ecx, ecx
jl 0x408d4d
sub eax, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
sub edx, eax
inc ecx
mov dword [esp + 0xa4], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x60], edx
cdq
lea esi, [ecx - 1]
sub esp, 0xc
idiv esi
mov dword [esp + 0x6c], ebx
mov ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x1c]
cdq
idiv esi
mov edx, esp
mov dword [edx], ecx
mov esi, eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
add esi, ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00408710
add esp, 4
mov eax, ebp
mov ecx, esp
lea edx, [esp + 0x34]
push edx
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], eax
call fcn.00408710
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0x10
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x1c]
add ecx, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x408c5e
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x98]
jmp 0x408d54
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x98]
jmp 0x408d58
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp eax, edx
je 0x408f29
jge 0x408d7c
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], edx
jmp 0x408d97
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x8c]
cmp eax, esi
jle 0x408dba
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ebp, esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], eax
jge 0x408dd4
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x88]
mov ebp, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0xa0]
dec ecx
test ecx, ecx
jl 0x408ef4
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x58]
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x64], edx
cdq
lea esi, [ecx - 1]
sub esp, 0xc
idiv esi
mov dword [esp + 0x70], ebp
mov ecx, eax
mov eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x1c]
cdq
idiv esi
mov edx, esp
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [edx], eax
mov eax, dword [esp + 0x44]
add esi, ebp
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00408710
add esp, 4
mov eax, ebx
mov ecx, esp
lea edx, [esp + 0x34]
push edx
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
call fcn.00408710
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0x10
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x18]
add ecx, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x408e18
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
je 0x4090c3
jge 0x408f32
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ecx, ebx
jmp 0x408f50
mov eax, dword [esp + 0x8c]
jmp 0x408ef8
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x78]
mov ebp, ebx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x90]
cmp ebx, edx
jge 0x408f8b
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
mov eax, edx
jmp 0x408fb2
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x3c], ebx
mov ebx, edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xa0]
lea esi, [edx - 1]
test esi, esi
mov dword [esp + 0x88], esi
jl 0x4090c3
sub eax, ebx
sub ecx, ebp
mov dword [esp + 0x94], eax
lea eax, [esi + 1]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x70], eax
jmp 0x409000
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0xa0]
sub esp, 0xc
cdq
idiv esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x74], ebx
mov ecx, eax
mov eax, dword [esp + 0xb0]
cdq
idiv esi
mov edx, esp
add ecx, ebp
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [edx], eax
mov eax, dword [esp + 0x40]
add esi, ebx
mov dword [edx + 4], eax
lea eax, [esp + 0x2c]
push eax
mov dword [edx + 8], ecx
call fcn.00408710
mov eax, dword [esp + 0x4c]
add esp, 4
mov ecx, esp
lea edx, [esp + 0x34]
push edx
mov dword [ecx], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
call fcn.00408710
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0x10
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x70]
add edx, ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x94]
add ecx, edx
dec eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x70], eax
jne 0x408ff9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret