Function at 0x42e760
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x46deb4
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4c6b0c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, ecx
push esi
lea ecx, [esp + 0x50]
call fcn.0045ddb0
xor ebx, ebx
cmp dword [ebp + 8], 6
mov dword [esp + 0x100], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x36], bl
jle 0x42e7d2
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
push eax
mov ecx, edi
call fcn.0041f640
cmp al, bl
jne 0x42e806
lea ecx, [esp + 0x4c]
mov dword [esp + 0x100], 0xffffffff
call fcn.0045ddf0
xor al, al
jmp 0x42fa7b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._n_parsing_hatch__n
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 1
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
cmp dword [ebp + 8], 5
jle 0x42ec87
mov ecx, esi
call fcn.0045e9c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.is_Gradient:
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 2
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460250
mov ecx, esi
call fcn.0045e9c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._reserved:
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 3
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edx, dword [esp + 0x24]
push edx
call fcn.00460470
mov ecx, eax
call fcn.00460250
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._Gradient_angle:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 4
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x24]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._Gradient_shift:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 5
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x24]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
mov ecx, esi
call fcn.0045e9c0
mov dword [esp + 0x24], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nsingle_color_Grad:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 6
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov eax, dword [esp + 0x24]
push eax
call fcn.00460470
mov ecx, eax
call fcn.00460250
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._Gradient_tint:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 7
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x24]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
mov ecx, esi
call fcn.0045e9c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._num_colors:
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 8
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460250
cmp dword [esp + 0x18], ebx
jle 0x42ebb1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
lea ecx, [ecx]
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nunkDouble:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 9
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x24]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
mov ecx, esi
call fcn.0045e980
sub esp, 0x1c
movzx eax, ax
mov ecx, esp
mov dword [esp + 0x38], esp
push str._unkShort:
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0xa
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
movzx ecx, word [esp + 0x24]
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460250
mov ecx, esi
call fcn.0045e9c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._rgb_color:
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0xb
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edx, dword [esp + 0x24]
push edx
call fcn.00460470
mov ecx, eax
call fcn.00460250
mov ecx, esi
call fcn.0045e070
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._ignored_color:
mov byte [esp + 0x57], al
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0xc
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
movzx eax, byte [esp + 0x37]
push eax
call fcn.00460470
mov ecx, eax
call fcn.00460250
sub dword [esp + 0x18], 1
jne 0x42ea70
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xa4]
push edx
call fcn.0045f040
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._ngradient_name:
mov byte [esp + 0x120], 0xd
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0xe
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], 0xd
call fcn.004601e0
cmp dword [esp + 0xb4], 0x10
mov eax, dword [esp + 0xa0]
jae 0x42ec17
lea eax, [esp + 0xa0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0xf
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], 0xd
call fcn.004601e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x10
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], 0xd
call fcn.004601e0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
call fcn.0045ea40
fstp qword [edi + 0x168]
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.0045eae0
fld qword [eax]
fstp qword [edi + 0x178]
sub esp, 0x1c
fld qword [eax + 8]
mov ecx, esp
fstp qword [edi + 0x180]
mov dword [esp + 0x38], esp
fld qword [eax + 0x10]
push str.base_point:
fstp qword [edi + 0x188]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x11
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [edi + 0x168]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [edi + 0x160]
fstp qword [esp + 8]
fld qword [edi + 0x158]
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.00460320
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nextrusion:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x12
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [edi + 0x188]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [edi + 0x180]
fstp qword [esp + 8]
fld qword [edi + 0x178]
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.00460320
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xa4]
push edx
call fcn.0045f040
lea ecx, [edi + 0x190]
push eax
mov byte [esp + 0x104], 0x13
call dword [0x476084]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nhatch_pattern_name:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x14
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
cmp dword [edi + 0x1a8], 0x10
jb 0x42edf2
mov eax, dword [edi + 0x194]
jmp 0x42edf8
lea eax, [edi + 0x194]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x15
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x16
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, esi
call fcn.0045df20
movzx eax, al
mov ecx, esi
mov dword [edi + 0x1ac], eax
call fcn.0045df20
movzx ecx, al
mov dword [edi + 0x1b0], ecx
mov ecx, esi
call fcn.0045e9c0
cmp eax, ebx
mov dword [edi + 0x1c0], eax
mov dword [esp + 0x24], ebx
jle 0x42f3eb
jmp 0x42ee90
push 0x20
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x100], 0x17
cmp eax, ebx
je 0x42eee7
mov ecx, esi
call fcn.0045e9c0
push 4
mov dword [esp + 0x3c], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x42eece
lea edx, [ecx + 8]
mov dword [eax], edx
jmp 0x42eed0
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], ebx
mov dword [ecx], edx
mov dword [ecx + 4], ebx
jmp 0x42eee9
xor ecx, ecx
movzx edx, byte [esp + 0x36]
mov dword [edi + 0x1f4], ecx
mov ecx, dword [ecx]
mov eax, ecx
and eax, 4
or eax, edx
test al, al
setne al
mov byte [esp + 0x100], bl
mov byte [esp + 0x36], al
test cl, 2
jne 0x42f115
mov ecx, esi
call fcn.0045e9c0
cmp eax, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
jle 0x42f304
lea ecx, [ecx]
mov ecx, esi
call fcn.0045e070
cmp al, 1
jne 0x42efa5
mov ecx, edi
call fcn.0042ded0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.0045e1a0
fld qword [eax]
mov ecx, dword [edi + 0x1f8]
fstp qword [ecx + 0x158]
fld qword [eax + 8]
add ecx, 0x158
fstp qword [ecx + 8]
lea edx, [esp + 0x9c]
fld qword [eax + 0x10]
push edx
fstp qword [ecx + 0x10]
mov ecx, esi
call fcn.0045e1a0
fld qword [eax]
mov ecx, dword [edi + 0x1f8]
fstp qword [ecx + 0x190]
fld qword [eax + 8]
add ecx, 0x190
fstp qword [ecx + 8]
fld qword [eax + 0x10]
fstp qword [ecx + 0x10]
jmp 0x42f0fd
cmp al, 2
jne 0x42f037
mov ecx, edi
call fcn.0042dfc0
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.0045e1a0
fld qword [eax]
mov ecx, dword [edi + 0x1fc]
fstp qword [ecx + 0x158]
fld qword [eax + 8]
add ecx, 0x158
fstp qword [ecx + 8]
fld qword [eax + 0x10]
fstp qword [ecx + 0x10]
mov ecx, esi
call fcn.0045ea40
mov ecx, dword [edi + 0x1fc]
fstp qword [ecx + 0x190]
mov ecx, esi
call fcn.0045ea40
mov edx, dword [edi + 0x1fc]
mov ecx, esi
fstp qword [edx + 0x198]
call fcn.0045ea40
mov eax, dword [edi + 0x1fc]
mov ecx, esi
fstp qword [eax + 0x1a0]
call fcn.0045df20
mov edx, dword [edi + 0x1fc]
movzx ecx, al
mov dword [edx + 0x1a8], ecx
jmp 0x42f0fd
cmp al, 3
jne 0x42f0f5
mov ecx, edi
call fcn.0042e0a0
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.0045e1a0
fld qword [eax]
mov ecx, dword [edi + 0x200]
fstp qword [ecx + 0x158]
fld qword [eax + 8]
add ecx, 0x158
fstp qword [ecx + 8]
fld qword [eax + 0x10]
fstp qword [ecx + 0x10]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.0045e1a0
fld qword [eax]
mov ecx, dword [edi + 0x200]
fstp qword [ecx + 0x190]
fld qword [eax + 8]
add ecx, 0x190
fstp qword [ecx + 8]
fld qword [eax + 0x10]
fstp qword [ecx + 0x10]
mov ecx, esi
call fcn.0045ea40
mov edx, dword [edi + 0x200]
mov ecx, esi
fstp qword [edx + 0x1a8]
call fcn.0045ea40
mov eax, dword [edi + 0x200]
mov ecx, esi
fstp qword [eax + 0x1b0]
call fcn.0045ea40
mov ecx, dword [edi + 0x200]
fstp qword [ecx + 0x1b8]
mov ecx, esi
call fcn.0045df20
movzx edx, al
mov eax, dword [edi + 0x200]
mov dword [eax + 0x1c0], edx
jmp 0x42f0fd
cmp al, 4
je 0x42faa1
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x42ef30
jmp 0x42f304
push 0x1b0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x100], 0x1b
cmp eax, ebx
je 0x42f13b
mov ecx, eax
call fcn.0041a9b0
jmp 0x42f13d
xor eax, eax
mov ecx, esi
mov byte [esp + 0x100], bl
mov dword [edi + 0x208], eax
call fcn.0045df20
test al, al
mov ecx, esi
setne byte [esp + 0x37]
call fcn.0045df20
mov edx, dword [edi + 0x208]
movzx ecx, al
mov dword [edx + 0x15c], ecx
mov ecx, esi
call fcn.0045e9c0
cmp eax, ebx
jle 0x42f284
fldz
mov dword [esp + 0x38], eax
mov ecx, esi
fstp qword [esp + 0x7c]
call fcn.0045e130
fstp qword [esp + 0x5c]
mov ecx, esi
call fcn.0045e130
fstp qword [esp + 0x64]
cmp byte [esp + 0x37], bl
je 0x42f1ae
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x7c]
mov eax, dword [edi + 0x208]
push 0x28
mov dword [esp + 0x40], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
fldz
add esp, 4
cmp eax, ebx
je 0x42f1d3
fst qword [eax + 0x20]
fst qword [eax + 0x18]
fst qword [eax + 0x10]
jmp 0x42f1d5
xor eax, eax
fld qword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
fstp qword [eax]
add ecx, 0x194
fld qword [esp + 0x64]
mov dword [esp + 0x1c], eax
fstp qword [eax + 8]
mov dword [esp + 0x30], ecx
fst qword [eax + 0x10]
fst qword [eax + 0x18]
fld qword [esp + 0x7c]
fstp qword [eax + 0x20]
mov edx, dword [ecx + 0xc]
cmp edx, ebx
jne 0x42f20e
mov dword [esp + 0x3c], ebx
jmp 0x42f21e
mov ecx, dword [ecx + 0x14]
sub ecx, edx
sar ecx, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
sub ecx, edx
sar ecx, 2
cmp ecx, dword [esp + 0x3c]
jae 0x42f242
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [ecx], eax
add ecx, 4
mov dword [edx + 0x10], ecx
jmp 0x42f277
mov eax, dword [esp + 0x30]
fstp st(0)
mov eax, dword [eax + 0xc]
cmp eax, dword [esp + 0x18]
jbe 0x42f257
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004089b0
fldz
sub dword [esp + 0x38], 1
jne 0x42f183
fstp st(0)
mov ecx, dword [edi + 0x208]
mov eax, dword [edi + 0x1f4]
add eax, 8
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], eax
cmp ecx, ebx
jne 0x42f2a8
mov dword [esp + 0x38], ebx
jmp 0x42f2b4
mov edx, dword [eax + 0x14]
sub edx, ecx
sar edx, 2
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
sub edx, ecx
sar edx, 2
cmp edx, dword [esp + 0x38]
jae 0x42f2d8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
add ecx, 4
mov dword [eax + 0x10], ecx
jmp 0x42f304
mov eax, dword [esp + 0x18]
cmp ecx, eax
jbe 0x42f2e6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0042b760
mov eax, dword [edi + 0x1f4]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
sar ecx, 2
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x1e8]
cmp eax, ebx
jne 0x42f324
xor ecx, ecx
jmp 0x42f32f
mov ecx, dword [edi + 0x1f0]
sub ecx, eax
sar ecx, 2
mov edx, dword [edi + 0x1ec]
mov dword [esp + 0x18], edx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x42f359
mov edx, dword [edi + 0x1f4]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
add eax, 4
mov dword [edi + 0x1ec], eax
jmp 0x42f38b
cmp eax, dword [esp + 0x18]
jbe 0x42f365
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x1dc]
lea edx, [edi + 0x1f4]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 0x1dc]
push edx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0042b820
mov ecx, esi
call fcn.0045e9c0
add dword [esp + 0x48], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._totalBoundItems:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x1c
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460270
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0x1c0]
mov dword [esp + 0x24], eax
jl 0x42ee90
mov ecx, esi
call fcn.0045e980
movzx eax, ax
mov ecx, esi
mov dword [edi + 0x1b4], eax
call fcn.0045e980
movzx ecx, ax
sub esp, 0x1c
mov dword [edi + 0x1b8], ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nhatch_style:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x1d
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edx, dword [edi + 0x1b4]
push edx
call fcn.00460470
mov ecx, eax
call fcn.00460250
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._pattern_type
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x1e
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov eax, dword [edi + 0x1b8]
push eax
call fcn.00460470
mov ecx, eax
call fcn.00460250
cmp dword [edi + 0x1ac], ebx
jne 0x42f74e
mov ecx, esi
call fcn.0045ea40
fstp qword [edi + 0x1c8]
mov ecx, esi
call fcn.0045ea40
fstp qword [edi + 0x1d0]
mov ecx, esi
call fcn.0045df20
movzx ecx, al
mov dword [edi + 0x1bc], ecx
mov ecx, esi
call fcn.0045e980
movzx eax, ax
cmp eax, ebx
mov dword [edi + 0x1d8], eax
mov dword [esp + 0x38], ebx
jle 0x42f74e
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x3c]
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x5c]
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x64]
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x9c]
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0xa4]
mov ecx, esi
call fcn.0045e980
sub esp, 0x1c
movzx edx, ax
mov ecx, esp
mov dword [esp + 0x38], esp
push str._ndef_line:
mov dword [esp + 0x44], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x1f
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x20
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x5c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x21
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x64]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x22
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x9c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x23
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0xa4]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x24
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
xor eax, eax
cmp ax, word [esp + 0x24]
jae 0x42f739
movzx ecx, word [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x3c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x25
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub dword [esp + 0x24], 1
jne 0x42f6e2
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [edi + 0x1d8]
mov dword [esp + 0x38], eax
jl 0x42f4e1
cmp byte [esp + 0x36], bl
je 0x42f7a4
mov ecx, esi
call fcn.0045ea40
fstp qword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._npixel_size:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x26
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x24]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
mov ecx, esi
call fcn.0045e9c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nnum_Seed_Points
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x27
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edx, dword [esp + 0x18]
push edx
call fcn.00460470
mov ecx, eax
call fcn.00460250
cmp dword [esp + 0x18], ebx
jle 0x42f8b8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov ecx, esi
call fcn.0045e130
fstp qword [esp + 0x9c]
mov ecx, esi
call fcn.0045e130
fstp qword [esp + 0xa4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478ef0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x28
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0x9c]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x478f18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x29
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
fld qword [esp + 0xa4]
sub esp, 8
fstp qword [esp]
call fcn.00460470
mov ecx, eax
call fcn.004602d0
sub dword [esp + 0x24], 1
jne 0x42f801
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2a
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, edi
call fcn.00420a80
cmp al, bl
je 0x42e7eb
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Remaining_bytes:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2b
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi + 8]
sub ecx, eax
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460250
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2c
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edi, dword [esp + 0x48]
cmp edi, ebx
jbe 0x42f9dd
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0045e230
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Boundary_Items_Handle:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2d
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + 0x25]
movzx ecx, byte [esp + 0x24]
push edx
push eax
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460310
sub edi, 1
jne 0x42f980
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Remaining_bytes:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2e
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi + 8]
sub ecx, eax
push ecx
call fcn.00460470
mov ecx, eax
call fcn.00460250
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x11c], 0x2f
call fcn.00460470
mov ecx, eax
mov byte [esp + 0x11c], bl
call fcn.004601e0
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [esp + 0x4c]
mov bl, al
mov dword [esp + 0x100], 0xffffffff
call fcn.0045ddf0
mov al, bl
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0046980b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.0042e160
mov ecx, esi
call fcn.0045e9c0
mov edx, dword [edi + 0x204]
mov ecx, esi
mov dword [edx + 0x1a4], eax
call fcn.0045df20
test al, al
mov eax, dword [edi + 0x204]
setne cl
movzx ecx, cl
add ecx, ecx
add ecx, ecx
or dword [eax + 0x1a0], ecx
mov edx, dword [edi + 0x204]
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.0045df20
movzx ecx, al
mov eax, dword [esp + 0x1c]
add ecx, ecx
or dword [eax + 0x1a0], ecx
mov ecx, esi
call fcn.0045e9c0
mov edx, dword [edi + 0x204]
mov dword [edx + 0x1a8], eax
mov eax, dword [edi + 0x204]
mov ecx, dword [eax + 0x1a8]
push ecx
lea ecx, [eax + 0x1d0]
call fcn.0042a7e0
mov edx, dword [edi + 0x204]
cmp dword [edx + 0x1a8], ebx
mov dword [esp + 0x24], ebx
jle 0x42fbde
jmp 0x42fb40
mov ecx, esi
call fcn.0045ea40
fst qword [esp + 0x1c]
mov eax, dword [edi + 0x204]
add eax, 0x1d0
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x42fb65
xor ecx, ecx
jmp 0x42fb71
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 3
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x18], edx
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x42fb97
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
fstp qword [eax]
add eax, 8
mov dword [ecx + 0x10], eax
jmp 0x42fbc3
fstp st(0)
cmp eax, dword [esp + 0x18]
jbe 0x42fba5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0042b6a0
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x204]
inc eax
cmp eax, dword [ecx + 0x1a8]
mov dword [esp + 0x24], eax
jl 0x42fb40
mov ecx, esi
call fcn.0045e9c0
mov edx, dword [edi + 0x204]
push 0xffffffffffffffff
mov dword [edx + 0x1ac], eax
call dword [sym.imp.MSVCR90.dll_exit]
int3