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

Disassembly:
push 0xffffffffffffffff
push 0x42606a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [esp + 0x104]
push ebx
push ebp
push esi
mov esi, ecx
mov byte [eax + 0x20], 1
push edi
mov dword [esp + 0x88], esi
mov eax, dword [esi + 0x1a4]
mov edx, dword [eax + 0x154]
lea ecx, [eax + 0x154]
call dword [edx + 0x18]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x1c], ecx
je 0x40752b
mov eax, dword [esi + 0x1a4]
push ecx
lea ecx, [eax + 0x154]
call dword [sym.imp.wxmsw28_core_vc.dll_public:_void____thiscall_wxItemContainer::GetClientData_unsigned_int_const]
mov ecx, dword [esi + 0x1a4]
test eax, eax
lea eax, [esp + 0x38]
setne byte [esp + 0x12]
push eax
add ecx, 0x154
call dword [sym.imp.wxmsw28_core_vc.dll_public:_class_wxString___thiscall_wxItemContainerImmutable::GetStringSelection_void_]
mov esi, dword [sym.imp.wxbase28_vc.dll_public:_class_wxString___thiscall_wxString::Left_unsigned_int_]
mov edi, dword [sym.imp.wxbase28_vc.dll_public:_int___thiscall_wxString::Cmp_char_const__const]
mov ebp, dword [sym.imp.wxbase28_vc.dll_public:_class_wxStringBase____thiscall_wxStringBase::erase_unsigned_int__unsigned_int_]
mov dword [esp + 0x10c], 0
lea ecx, [esp + 0x48]
push 4
push ecx
lea ecx, [esp + 0x40]
call esi
push str.
mov ecx, eax
mov byte [esp + 0x110], 1
call edi
mov edx, dword [esp + 0x48]
mov byte [esp + 0x10c], 0
test eax, eax
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
sete bl
cmp ecx, 0xffffffff
je 0x406810
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406810
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test bl, bl
je 0x406820
push 4
push 0
lea ecx, [esp + 0x40]
call ebp
jmp 0x4067c5
call dword [sym.imp.Output.dll_struct_PLOTTERCONFIG____cdecl_GetPlotter_void_]
fild dword [eax + 0x44]
mov dword [esp + 0x98], eax
fmul dword [eax + 0x2c]
fmul dword [0x42ceb8]
call sub.MSVCRT.dll__ftol
mov ebx, eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x28]
mov ebp, dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::GetBoundRect_int___int___int___int__]
push eax
push ecx
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x64]
lea eax, [esp + 0x4c]
push edx
mov ecx, dword [ecx + 0x1bc]
push eax
add ecx, 0x174
mov dword [esp + 0xac], ebx
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x406889
xor edi, edi
jmp 0x40688e
sub eax, ecx
inc eax
mov edi, eax
lea ecx, [esp + 0xa0]
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::constructor_void_]
lea edx, [esp + 0x34]
mov byte [esp + 0x10c], 2
push edx
call fcn.00419d50
mov ecx, eax
call fcn.00405f70
mov esi, eax
mov eax, dword [sym.imp.wxbase28_vc.dll_char_const__const_wxEmptyString]
mov ecx, dword [eax]
mov dword [esp + 0xe0], ecx
push 0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x110], 4
call dword [sym.imp.wxbase28_vc.dll_protected:_void___thiscall_wxArrayString::Init_bool_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0x10c], 5
call dword [sym.imp.wxbase28_vc.dll_public:_void___thiscall_wxString::constructor_void_]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x10c], 6
call dword [sym.imp.wxbase28_vc.dll_public:_void___thiscall_wxString::constructor_void_]
lea edx, [esp + 0x38]
push 0
push edx
push esi
lea ecx, [esp + 0xec]
mov byte [esp + 0x118], 7
call dword [sym.imp.wxbase28_vc.dll_public:_void___thiscall_wxFileName::Assign_class_wxString_const___class_wxString_const___enum_wxPathFormat_]
lea eax, [esp + 0x48]
push 0
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x114], 8
call dword [sym.imp.wxbase28_vc.dll_public:_class_wxString___thiscall_wxFileName::GetFullPath_enum_wxPathFormat_]
mov eax, dword [eax]
lea ecx, [esp + 0xa0]
push eax
mov byte [esp + 0x110], 9
call dword [sym.imp.Output.dll_public:_bool___thiscall_CPolylineIArray::Load_char_const__]
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40697a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40697a
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x406980
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0xf8]
mov byte [esp + 0x10c], 0xa
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4069a7
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4069a7
push eax
call esi
add esp, 4
mov eax, dword [esp + 0xf4]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4069c5
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4069c5
push eax
call esi
add esp, 4
lea ecx, [esp + 0xe4]
call dword [sym.imp.wxbase28_vc.dll_public:_void___thiscall_wxArrayString::destructor_void_]
mov ecx, dword [esp + 0xe0]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4069f1
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4069f1
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x34]
mov byte [esp + 0x10c], 2
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406a15
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406a15
push eax
call esi
add esp, 4
mov al, byte [esp + 0x12]
test al, al
je 0x406a2f
push 0x42b40000
lea ecx, [esp + 0xa4]
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::Rotate_float_]
lea ecx, [esp + 0xa0]
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::AlignZero_void_]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0xb0]
call ebp
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jne 0x406a75
mov dword [esp + 0x30], 0
jmp 0x406a7c
sub eax, ecx
inc eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], ebx
jle 0x406abd
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 0
call dword [sym.imp.Output.dll_public_virtual:_void___thiscall_CPolylineIArray::destructor_void_]
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40752b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40752b
push eax
call esi
jmp 0x407528
lea edx, [esp + 0x38]
lea eax, [esp + 0x48]
push edx
push str.
push eax
call dword [sym.imp.wxbase28_vc.dll_class_wxString___cdecl_operator_char_const___class_wxString_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x110], 0xb
call dword [sym.imp.wxbase28_vc.dll_public:_class_wxStringBase____thiscall_wxStringBase::operator_class_wxStringBase_const__]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x10c], 2
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406b0c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406b0c
push eax
call esi
add esp, 4
mov ebp, dword [esp + 0x88]
mov eax, dword [ebp + 0x1a4]
mov edx, dword [eax + 0x154]
lea ecx, [eax + 0x154]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 0x1bc]
add ecx, 0x174
push ecx
lea ecx, [ebp + 0x1c4]
call dword [sym.imp.Output.dll_public:_class_CPolylineIArray____thiscall_CPolylineIArray::operator_class_CPolylineIArray__]
push 0
push edi
lea ecx, [esp + 0xa8]
mov byte [ebp + 0x1c0], 1
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::Offset_int__int_]
mov esi, dword [esp + 0x28]
push 0x64
add esi, edi
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.wxbase28_vc.dll_protected:_static_unsigned_long_int___cdecl__wxHashTableBase2::GetNextPrime_unsigned_long_int_]
call esi
mov dl, byte [esp + 0x16]
mov cl, byte [esp + 0x16]
mov edi, dword [sym.imp.MSVCRT.dll_calloc]
mov byte [esp + 0x78], dl
mov dl, byte [esp + 0x16]
push 4
push eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov byte [esp + 0x81], cl
mov byte [esp + 0x82], dl
call edi
mov dword [esp + 0x74], eax
push 0x64
mov byte [esp + 0x11c], 0xc
call esi
mov cl, byte [esp + 0x22]
mov dl, byte [esp + 0x22]
mov byte [esp + 0x94], cl
mov cl, byte [esp + 0x22]
xor esi, esi
push 4
push eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], esi
mov byte [esp + 0x9d], dl
mov byte [esp + 0x9e], cl
call edi
add esp, 0x18
mov dword [esp + 0x78], eax
test ebx, ebx
mov byte [esp + 0x10c], 0xd
jle 0x406c2b
xor edi, edi
lea edx, [esp + 0x12]
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
call fcn.00407560
inc esi
mov dword [eax + 8], edi
cmp esi, ebx
jl 0x406c06
jmp 0x406c2d
xor edi, edi
mov eax, dword [ebp + 0x1bc]
mov dword [esp + 0x58], edi
mov ecx, dword [eax + 0x17c]
cmp ecx, edi
jle 0x406f22
mov ecx, dword [esp + 0x58]
push ecx
lea ecx, [eax + 0x174]
call dword [sym.imp.Output.dll_public:_class_CPolylineI____thiscall_CPolylineIArray::GetPolyline_int_]
mov ebp, eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], ebp
mov eax, dword [ebp + 8]
dec eax
test eax, eax
jle 0x406f00
jmp 0x406c70
xor ebx, ebx
mov edi, dword [sym.imp.Output.dll_public:_bool___thiscall_CPolylineI::GetPoint_int__int___int__]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebp
call edi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
inc esi
push ecx
push edx
push esi
mov ecx, ebp
mov dword [esp + 0x40], esi
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x12]
lea edx, [esp + 0xd0]
push ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], ebx
call fcn.00407560
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 8]
cmp ecx, edx
jg 0x406d03
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x43]
lea ecx, [esp + 0xd8]
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], ebx
call fcn.00407560
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
cmp edx, ecx
jle 0x406ef4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x55]
lea edx, [esp + 0xc8]
push ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ebx
call fcn.00407560
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 8]
cmp ecx, edx
jle 0x406d65
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x56]
lea ecx, [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ebx
call fcn.00407560
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x42]
lea edx, [esp + 0xc0]
push ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ebx
call fcn.00407560
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 8]
cmp ecx, edx
jle 0x406dc7
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x57]
lea ecx, [esp + 0xb0]
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
call fcn.00407560
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov edx, eax
jl 0x406dd7
mov edx, ecx
lea ebx, [edx + 1]
mov dword [esp + 0x1c], ebx
cmp eax, ecx
jg 0x406de4
mov eax, ecx
cmp ebx, eax
jge 0x406ef0
fild dword [esp + 0x1c]
lea eax, [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x44]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push ecx
fild dword [esp + 0x24]
push eax
push 0x447a0000
push eax
push 0
push ecx
fstp dword [esp]
fild dword [esp + 0x4c]
push ecx
fstp dword [esp]
fild dword [esp + 0x38]
push ecx
fstp dword [esp]
fild dword [esp + 0x4c]
push ecx
fstp dword [esp]
call fcn.004199b0
add esp, 0x2c
test al, al
je 0x406eda
fld dword [esp + 0x3c]
fcomp dword [0x42caf8]
fld dword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x406e5a
fadd qword [0x42caf0]
jmp 0x406e60
fsub qword [0x42caf0]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x50]
fcomp dword [0x42caf8]
fld dword [esp + 0x50]
mov ebp, eax
fnstsw ax
test ah, 1
jne 0x406e84
fadd qword [0x42caf0]
jmp 0x406e8a
fsub qword [0x42caf0]
call sub.MSVCRT.dll__ftol
mov edi, eax
lea edx, [esp + 0x23]
lea eax, [esp + 0x90]
xor esi, esi
push edx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], esi
call fcn.00407560
cmp ebp, dword [eax + 8]
jle 0x406eda
lea ecx, [esp + 0x13]
lea edx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
call fcn.00407560
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x48]
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x406dde
mov esi, dword [esp + 0x34]
mov eax, dword [ebp + 8]
dec eax
cmp esi, eax
jl 0x406c6e
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x58]
inc ecx
mov eax, dword [eax + 0x1bc]
mov dword [esp + 0x58], ecx
cmp ecx, dword [eax + 0x17c]
jl 0x406c45
mov edi, dword [esp + 0x30]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
jle 0x406f58
lea ecx, [esp + 0x13]
lea edx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ebx
call fcn.00407560
mov ecx, dword [esp + 0x28]
inc esi
cmp esi, edi
mov dword [eax + 8], ecx
jl 0x406f2e
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x58], ebx
cmp eax, ebx
jle 0x407250
push ebx
lea ecx, [esp + 0xa4]
call dword [sym.imp.Output.dll_public:_class_CPolylineI____thiscall_CPolylineIArray::GetPolyline_int_]
mov edi, eax
xor esi, esi
mov dword [esp + 0x48], edi
mov eax, dword [edi + 8]
dec eax
test eax, eax
jle 0x40723c
xor ebp, ebp
mov ebx, dword [sym.imp.Output.dll_public:_bool___thiscall_CPolylineI::GetPoint_int__int___int__]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push esi
mov ecx, edi
call ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
inc esi
push ecx
push edx
push esi
mov ecx, edi
mov dword [esp + 0x40], esi
call ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x13]
lea edx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebp
call fcn.00407560
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 8]
cmp ecx, edx
jl 0x40701f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x23]
lea ecx, [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ebp
call fcn.00407560
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
cmp edx, ecx
jge 0x407224
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x57]
lea edx, [esp + 0xb0]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ebp
call fcn.00407560
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 8]
cmp ecx, edx
jge 0x407087
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x42]
lea ecx, [esp + 0xc0]
push eax
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ebp
call fcn.00407560
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x56]
lea edx, [esp + 0xb8]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebp
call fcn.00407560
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 8]
cmp ecx, edx
jge 0x4070ef
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x55]
lea ecx, [esp + 0xc8]
push eax
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebp
call fcn.00407560
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov edx, eax
jl 0x4070ff
mov edx, ecx
lea ebx, [edx + 1]
mov dword [esp + 0x1c], ebx
cmp eax, ecx
jg 0x40710c
mov eax, ecx
cmp ebx, eax
jge 0x407224
fild dword [esp + 0x1c]
lea eax, [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x44]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push ecx
fild dword [esp + 0x24]
push eax
push 0x447a0000
push eax
push ebp
push ecx
fstp dword [esp]
fild dword [esp + 0x4c]
push ecx
fstp dword [esp]
fild dword [esp + 0x38]
push ecx
fstp dword [esp]
fild dword [esp + 0x4c]
push ecx
fstp dword [esp]
call fcn.004199b0
add esp, 0x2c
test al, al
je 0x407210
fld dword [esp + 0x3c]
fcomp dword [0x42caf8]
fld dword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x407181
fadd qword [0x42caf0]
jmp 0x407187
fsub qword [0x42caf0]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x50]
fcomp dword [0x42caf8]
fld dword [esp + 0x50]
mov ebp, eax
fnstsw ax
test ah, 1
jne 0x4071ab
fadd qword [0x42caf0]
jmp 0x4071b1
fsub qword [0x42caf0]
call sub.MSVCRT.dll__ftol
mov edi, eax
lea edx, [esp + 0x43]
lea eax, [esp + 0xd8]
xor esi, esi
push edx
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], esi
call fcn.00407560
cmp ebp, dword [eax + 8]
jge 0x407210
lea ecx, [esp + 0x12]
lea edx, [esp + 0xd0]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], esi
call fcn.00407560
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
jmp 0x407106
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 8]
dec eax
cmp esi, eax
jl 0x406f8f
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0xa8]
inc ebx
cmp ebx, eax
mov dword [esp + 0x58], ebx
jl 0x406f6b
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x30]
xor ebx, ebx
sub eax, edx
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x9c], eax
jle 0x407329
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x44], ecx
jle 0x4072fc
lea eax, [edi + ebp]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x13]
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x6c], ebx
call fcn.00407560
mov esi, eax
lea edx, [esp + 0x23]
lea eax, [esp + 0x90]
push edx
push eax
lea ecx, [esp + 0x80]
add esi, 8
call fcn.00407560
mov eax, dword [eax + 8]
mov edx, dword [esi]
sub eax, edx
cmp edi, ebx
mov dword [esp + 0x5c], eax
je 0x4072ed
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jge 0x4072f3
mov ecx, eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jl 0x40728c
cmp ebp, ebx
je 0x407306
cmp ecx, dword [esp + 0x28]
jle 0x407314
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebp
neg ecx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x9c]
add ebp, 0xc8
cmp ebp, eax
jl 0x40727c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0xa8]
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::Offset_int__int_]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov esi, dword [sym.imp.wxbase28_vc.dll_protected:_static_void___cdecl__wxHashTableBase2::DeleteNodes_unsigned_int__struct__wxHashTable_NodeBase____void____cdecl___struct__wxHashTable_NodeBase___]
push 0x407550
push eax
push ecx
call esi
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
push 0x407550
push edx
push eax
mov dword [esp + 0x88], ebx
call esi
mov edi, dword [esp + 0xa0]
add esp, 0x18
lea ecx, [esp + 0xa0]
mov dword [esp + 0x80], ebx
push ecx
mov ecx, dword [edi + 0x1bc]
add ecx, 0x174
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::Append_class_CPolylineIArray__]
lea ecx, [esp + 0xa0]
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::Destroy_void_]
mov ecx, dword [edi + 0x1bc]
push 1
call fcn.0041bea0
mov ecx, dword [edi + 0x1bc]
call fcn.0041c6c0
lea edx, [esp + 0x8c]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, dword [edi + 0x1bc]
lea edx, [esp + 0x50]
push edx
add ecx, 0x174
call dword [sym.imp.Output.dll_public:_void___thiscall_CPolylineIArray::GetBoundRect_int___int___int___int__]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jne 0x407403
mov dword [esp + 0x30], ebx
jmp 0x40740a
sub eax, ecx
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
fld dword [eax + 0x2c]
fmul dword [0x42cafc]
fild dword [esp + 0x30]
fidiv dword [eax + 0x44]
fmul dword [0x42ceb4]
fsubp st(1)
fcom dword [0x42caf8]
fnstsw ax
test ah, 1
jne 0x40743e
fadd qword [0x42caf0]
jmp 0x407444
fsub qword [0x42caf0]
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0x9c]
push 0x4414a8
push eax
call dword [sym.imp.wxbase28_vc.dll_public:_static_class_wxString___cdecl_wxString::Format_char_const__]
add esp, 0xc
mov ecx, dword [edi + 0x1b8]
push eax
mov byte [esp + 0x110], 0xe
mov edx, dword [ecx]
call dword [edx + 0x2d0]
mov eax, dword [esp + 0x98]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40749d
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x40749d
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
add esp, 4
jmp 0x4074a3
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
push 0x407550
push ecx
push edx
mov byte [esp + 0x118], 0xc
call esi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], ebx
push eax
call edi
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
push 0x407550
push ecx
push edx
mov byte [esp + 0x128], 2
call esi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], ebx
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 0
call dword [sym.imp.Output.dll_public_virtual:_void___thiscall_CPolylineIArray::destructor_void_]
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40752b
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x40752b
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 4