Function at 0x59a4f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
mov byte [ebp - 0x19], cl
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x59af97
mov byte [ebp - 0x4d], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x59af1a
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov edx, dword [ebp - 0x20]
call fcn.0041bd08
mov edi, eax
mov ebx, edi
cmp byte [ebx + 0x30], 0
je 0x59af0e
cmp byte [ebx + 0x10], 0
je 0x59a562
mov byte [ebp - 0x4d], 1
cmp byte [ebx + 0x10], 0
je 0x59a5c7
mov eax, dword [esi]
cmp byte [eax + 0x408], 0
jne 0x59a5c7
mov eax, dword [esi]
cmp byte [eax + 0x406], 0
jne 0x59a5c7
mov eax, dword [esi]
cmp byte [eax + 0x409], 0
jne 0x59a5c7
mov eax, dword [ebp - 0x18]
mov edx, dword [0x43e314]
call fcn.00403bf8
test al, al
je 0x59a5c7
mov eax, dword [esi]
cmp byte [eax + 0x40a], 0
jne 0x59a5c7
mov eax, dword [esi]
cmp dword [eax + 0x40c], 0
jge 0x59a5c7
inc dword [ebx + 0x14]
cmp dword [ebx + 0x14], 0xa
jl 0x59a5bf
xor eax, eax
mov dword [ebx + 0x14], eax
mov eax, dword [esi]
inc dword [eax + 0x274]
lea edx, [ebp - 0x70]
mov eax, dword [ebx + 0x1c]
call fcn.00428bd4
cmp dword [ebp - 0x70], 0
jne 0x59a5ea
cmp dword [ebp - 0x6c], 0
jne 0x59a5ea
cmp dword [ebp - 0x68], 0
jne 0x59a5ea
cmp dword [ebp - 0x64], 0
je 0x59a5ee
xor eax, eax
jmp 0x59a5f0
mov al, 1
test al, al
jne 0x59af0e
mov eax, dword [esi]
cmp dword [eax + 0x3b0], 0
jne 0x59af0e
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x50], 0
je 0x59a61a
cmp byte [ebp - 0x19], 0
jne 0x59af0e
mov eax, dword [esi]
cmp byte [eax + 0x496], 0
jne 0x59af0e
cmp byte [ebx + 0x31], 0
je 0x59a84f
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.0059d914
test al, al
je 0x59a84f
mov eax, dword [esi]
cmp byte [eax + 0x408], 0
jne 0x59a84f
mov eax, dword [esi]
cmp dword [eax + 0x40c], 0xffffffff
jne 0x59a84f
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
mov dl, byte [eax + 0x484]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x14]
call fcn.004282d8
mov eax, dword [esi]
mov edx, dword [eax + 0x480]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x14]
call fcn.004281bc
mov eax, dword [esi]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
call fcn.00427ebc
mov dword [ebp - 0x40], 0x989680
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0xfff0bdc0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 4]
dec eax
test eax, eax
jl 0x59a778
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*8]
cmp eax, 0xfffff
je 0x59a76c
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, eax
add edx, dword [ebp - 0x28]
push edx
mov edx, eax
add edx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x2c]
sub edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x28]
sub edx, eax
inc edx
mov eax, dword [ebp - 0x5c]
pop ecx
call fcn.004287a8
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
jge 0x59a742
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jge 0x59a750
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x48]
jle 0x59a75e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x4c]
jle 0x59a76c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x60]
jne 0x59a6d3
mov eax, dword [esi]
cmp byte [eax + 0x48c], 0
je 0x59a84f
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x40]
sar eax, 1
jns 0x59a794
adc eax, 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x44]
sar eax, 1
jns 0x59a7a4
adc eax, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, eax
add edx, dword [ebp - 0x28]
push edx
mov edx, eax
add edx, dword [ebp - 0x44]
push edx
mov edx, dword [ebp - 0x44]
sub edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x28]
sub edx, eax
inc edx
mov eax, dword [ebp - 0x5c]
pop ecx
call fcn.004287a8
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, eax
add edx, dword [ebp - 0x40]
push edx
mov edx, eax
add edx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x2c]
sub edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x40]
sub edx, eax
inc edx
mov eax, dword [ebp - 0x5c]
pop ecx
call fcn.004287a8
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, eax
add edx, dword [ebp - 0x48]
push edx
mov edx, eax
add edx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x2c]
sub edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x48]
sub edx, eax
inc edx
mov eax, dword [ebp - 0x5c]
pop ecx
call fcn.004287a8
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, eax
add edx, dword [ebp - 0x28]
push edx
mov edx, eax
add edx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
sub edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x28]
sub edx, eax
inc edx
mov eax, dword [ebp - 0x5c]
pop ecx
call fcn.004287a8
mov eax, dword [esi]
cmp edi, dword [eax + 0x438]
jne 0x59ac31
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call fcn.005a5be8
test al, al
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x40a], 0
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x408], 0
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x409], 0
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x406], 0
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x2aa], 0
jne 0x59ac31
mov eax, dword [esi]
cmp byte [eax + 0x298], 0
je 0x59a8d7
mov eax, dword [esi]
cmp dword [eax + 0x374], 0
jne 0x59af0e
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x54], eax
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.0059d914
test al, al
je 0x59aaf9
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x10]
mov dl, 4
call fcn.00427f9c
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
fld qword [eax + 0x390]
fcomp dword [0x59afa0]
fnstsw ax
sahf
jbe 0x59a938
mov eax, dword [ebx]
cmp dword [eax], 0
jle 0x59a938
dec dword [ebp - 0x28]
mov eax, dword [esi]
fld qword [eax + 0x390]
fcomp dword [0x59afa0]
fnstsw ax
sahf
jbe 0x59a956
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jle 0x59a956
dec dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [esi]
call fcn.00597050
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
call fcn.005970d4
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3b4]
mov edx, eax
sub edx, 0x1e
mov dword [ebp - 0x14], edx
mov edx, dword [esi]
add eax, dword [edx + 0x48]
add eax, 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3b8]
sub eax, 0x1e
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3b8]
mov edx, dword [esi]
add eax, dword [edx + 0x4c]
add eax, 0x1e
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
jle 0x59aa03
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jge 0x59aa03
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jge 0x59aa03
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jle 0x59aa03
push edi
push 0x59a344
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
call fcn.00570858
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
call fcn.00570850
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jle 0x59aa4e
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jge 0x59aa4e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jge 0x59aa4e
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
jle 0x59aa4e
push edi
push 0x59a344
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x34]
call fcn.00570858
push eax
mov eax, dword [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
call fcn.00570850
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
jle 0x59aa99
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 8]
jge 0x59aa99
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jge 0x59aa99
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jle 0x59aa99
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
call fcn.00570858
push eax
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
call fcn.00570850
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jle 0x59ab79
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xc]
jge 0x59ab79
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jge 0x59ab79
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
jle 0x59ab79
push edi
push 0x59a344
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x34]
call fcn.00570858
push eax
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
call fcn.00570850
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_LineDDA
jmp 0x59ab79
mov eax, dword [esi]
mov eax, dword [eax + 0x3b8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x328]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x32c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x318]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x31c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x320]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x324]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
push eax
mov eax, dword [esi]
push dword [eax + 0x394]
push dword [eax + 0x390]
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b4]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
mov edx, dword [ebx + 0x1c]
call fcn.005a4b4c
mov eax, dword [esi]
cmp dword [eax + 0xc], 0xa8
jne 0x59abd1
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.0059d914
test al, al
je 0x59abd1
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [esi]
call fcn.00597050
dec eax
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
call fcn.005970d4
dec eax
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov eax, dword [esi]
call fcn.005970d4
push eax
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [esi]
call fcn.00597050
mov edx, eax
mov eax, dword [ebx + 0x1c]
pop ecx
call fcn.0059a3a8
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], eax
mov eax, dword [esi]
cmp dword [eax + 0x2e0], 0
jge 0x59af0e
imul eax, dword [ebp - 0x54], 0x64
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
fild qword [ebp - 0x78]
mov eax, dword [esi]
mov eax, dword [eax + 0x2e0]
neg eax
mov dword [ebp - 0x7c], eax
fild dword [ebp - 0x7c]
fdivp st(1)
call fcn.00402ccc
mov edx, eax
mov eax, 0xd2
call fcn.00570850
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
call fcn.0043f7d4
jmp 0x59af0e
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x10]
mov dl, 4
call fcn.00427f9c
cmp dword [ebx + 4], 0
jle 0x59af0e
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.0059d914
test al, al
je 0x59ad9a
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
fld qword [eax + 0x390]
fcomp dword [0x59afa0]
fnstsw ax
sahf
jbe 0x59ac9a
mov eax, dword [ebx]
cmp dword [eax], 0
jle 0x59ac9a
dec dword [ebp - 0x28]
mov eax, dword [esi]
fld qword [eax + 0x390]
fcomp dword [0x59afa0]
fnstsw ax
sahf
jbe 0x59acb8
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jle 0x59acb8
dec dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [esi]
call fcn.00597050
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
call fcn.005970d4
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x20], 0
jne 0x59ace3
xor eax, eax
mov dword [ebx + 0x18], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
cmp dword [ebp - 0x20], 0
jne 0x59ad09
xor eax, eax
mov dword [ebx + 0x18], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
cmp dword [ebp - 0x20], 0
jne 0x59ad2f
xor eax, eax
mov dword [ebx + 0x18], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
cmp dword [ebp - 0x20], 0
jne 0x59ad55
xor eax, eax
mov dword [ebx + 0x18], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [esi]
cmp dword [eax + 0xc], 0xa8
jne 0x59af0e
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x1c]
call fcn.0059a3a8
jmp 0x59af0e
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], 1
jmp 0x59ae9c
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*8], 0xfffff
jne 0x59ae33
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 - 8]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 - 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x34], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
inc dword [ebp - 0x24]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax + edx*8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x38], ecx
jmp 0x59ae99
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 - 8]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 - 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 0x24]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x34], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebx + 4]
jl 0x59adb3
mov eax, dword [esi]
cmp byte [eax + 0x406], 0
jne 0x59af0e
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov edx, dword [eax + edx*8 - 8]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov edx, dword [eax + edx*8 - 4]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi]
call fcn.00597050
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [esi]
call fcn.005970d4
mov dword [ebp - 0x34], eax
push edi
push 0x59a344
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_LineDDA
inc dword [ebp - 0x20]
dec dword [ebp - 0x58]
jne 0x59a53a
mov eax, dword [esi]
cmp dword [eax + 0x370], 0
jne 0x59af47
mov eax, dword [esi]
cmp dword [eax + 0x374], 0
jne 0x59af47
cmp byte [ebp - 0x4d], 0
jne 0x59af47
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
xor edx, edx
call fcn.0043f7c4
jmp 0x59af5c
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
cmp byte [eax + 0x40], 0
jne 0x59af5c
mov dl, 1
call fcn.0043f7c4
mov eax, dword [esi]
cmp dword [eax + 0x370], 0
jle 0x59af84
mov eax, dword [esi]
dec dword [eax + 0x370]
mov eax, dword [esi]
cmp dword [eax + 0x370], 0
jne 0x59af84
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [esi]
cmp dword [eax + 0x374], 0
jle 0x59af97
mov eax, dword [esi]
dec dword [eax + 0x374]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret