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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52566b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x64]
add eax, 0x44
mov dword [esp + 0x10], eax
mov al, byte [ebp + 8]
test al, al
je 0x466689
lea edi, [esi + 0xe8]
push 0xb
push edi
call fcn.00465020
push 0
mov ecx, edi
call fcn.00510dc0
mov eax, 1
mov ebx, 0x557c48
mov dword [esi + 0x168], eax
mov dword [esi + 0x17c], eax
mov edx, 0x555f5c
mov ecx, 0x558424
mov eax, 0x555f2c
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov ebx, str.Placed_Piece
mov edx, 0x555f00
mov ecx, str.Plan
mov eax, str.Annotate
mov dword [esp + 0xac], 0x559488
mov dword [esp + 0xb0], 0x556518
mov dword [esp + 0xb4], 0x558404
mov dword [esp + 0xb8], 0x555cf4
mov dword [esp + 0xbc], 0x555f3c
mov dword [esp + 0xc0], 0x55947c
mov dword [esp + 0xcc], 0x5596a4
mov dword [esp + 0x28], 0x559488
mov dword [esp + 0x2c], 0x556518
mov dword [esp + 0x30], 0x558410
mov dword [esp + 0x34], 0x555cf4
mov dword [esp + 0x38], 0x555f3c
mov dword [esp + 0x3c], 0x55947c
mov dword [esp + 0x48], 0x559694
mov dword [esp + 0x54], 0x55968c
mov dword [esp + 0x58], str.Color
mov dword [esp + 0x5c], str.Width_cm_
mov dword [esp + 0x60], str.Layer
mov dword [esp + 0x64], str.Directional
mov dword [esp + 0x68], str.Setting_Pieces
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], str.Length_cm_
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0x55968c
mov dword [esp + 0x84], str.Color
mov dword [esp + 0x88], str.Width_inch_
mov dword [esp + 0x8c], str.Layer
mov dword [esp + 0x90], str.Directional
mov dword [esp + 0x94], str.Setting_Pieces
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], str.Length_inch_
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
call fcn.00473c00
test eax, eax
je 0x466647
xor ebx, ebx
mov eax, dword [esp + ebx*4 + 0x80]
mov ecx, dword [esp + ebx*4 + 0x28]
push eax
push ecx
push ebx
push 0
mov ecx, edi
call fcn.00511a60
inc ebx
cmp ebx, 0xb
jl 0x466628
jmp 0x466666
xor ebx, ebx
mov edx, dword [esp + ebx*4 + 0x54]
mov eax, dword [esp + ebx*4 + 0xac]
push edx
push eax
push ebx
push 0
mov ecx, edi
call fcn.00511a60
inc ebx
cmp ebx, 0xb
jl 0x466649
mov ecx, edi
call fcn.00512560
push 0
mov ecx, edi
call fcn.00512460
push 0
mov ecx, edi
call fcn.005121e0
push eax
push 1
mov ecx, edi
call fcn.00512240
add esi, 0xe8
push 2
mov ecx, esi
call fcn.00510f00
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov edi, 1
mov dword [esp + 0x1c], ebx
mov eax, dword [ecx + 8]
test eax, eax
jle 0x46697c
mov dword [esp + 0x20], 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x46698b
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ef220
test al, al
je 0x46695c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
lea ecx, [esp + 0x14]
add edx, 8
push edx
call fcn.0051b01c
mov eax, dword [esp + 0x14]
mov dword [esp + 0xe0], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x466742
call fcn.00410760
mov eax, dword [eax + 0x64]
test eax, eax
je 0x46671b
cmp eax, 2
jne 0x466734
push 0x558464
call fcn.0043e1f0
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.0051afc2
jmp 0x466742
push str.Empty_Name
lea ecx, [esp + 0x18]
call fcn.0051afb6
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx*4]
call fcn.004ee3e0
test eax, eax
jle 0x466948
lea eax, [edi + 1]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*4]
call fcn.004ee3f0
mov ecx, dword [0x538b50]
mov ebx, eax
push ecx
mov eax, dword [ebx + 0xc0]
push eax
nop
call fcn.0061e098
add esp, 8
test eax, eax
je 0x466920
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, eax
mov ecx, esi
push edx
push 0
push edi
call fcn.00511c50
mov eax, dword [ebx + 0xc0]
push 0
push eax
push 0
push edi
mov ecx, esi
call fcn.00511a60
mov eax, dword [ebx + 0x10]
push 0
push eax
push 1
push edi
mov ecx, esi
call fcn.00511a60
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
push 0
push ecx
push edx
call fcn.00474020
mov eax, dword [eax]
add esp, 0xc
mov ecx, esi
push 0
push eax
push 2
push edi
call fcn.00511a60
mov eax, dword [ebx + 0x12c]
mov eax, dword [eax]
push eax
push 0
push 0x555c7c
push 3
push edi
push esi
call fcn.00511b20
mov eax, dword [ebx + 0x20]
add esp, 0x18
test eax, eax
jne 0x466825
push 0x555e58
push 0x555e50
jmp 0x466856
cmp eax, 1
jne 0x46684c
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x466840
push 0x555ecc
push 0x555f34
jmp 0x466856
push 0x555e3c
push 0x555e34
jmp 0x466856
push str.multi_direction
push 0x555e1c
push 4
push edi
mov ecx, esi
call fcn.00511a60
mov ecx, dword [ebx + 0x108]
push ecx
push 0
push 0x555c7c
push 5
push edi
push esi
call fcn.00511b20
mov edx, dword [ebx + 0x10c]
add esp, 0x18
push edx
push 0
push 0x555c7c
push 6
push edi
push esi
call fcn.00511b20
fld qword [ebx + 0xf8]
fmul qword [0x5315c8]
add esp, 0x10
fstp qword [esp]
push 0
push 0x555e74
push 7
push edi
push esi
call fcn.00511b20
fld qword [0x5315c8]
fsub qword [ebx + 0x28]
add esp, 0x1c
fdivr qword [0x5315c8]
push 0
sub esp, 8
fmul qword [ebx + 0x100]
fstp qword [esp]
call fcn.00474020
mov eax, dword [eax]
add esp, 0xc
mov ecx, esi
push 0
push eax
push 8
push edi
call fcn.00511a60
mov eax, dword [esp + 0x14]
push 0
push eax
push 9
push edi
mov ecx, esi
call fcn.00511a60
mov ebx, dword [ebx + 0xc4]
push 0
push ebx
push 0xa
push edi
mov ecx, esi
call fcn.00511a60
mov eax, dword [esp + 0x24]
inc edi
inc eax
mov ecx, esi
push eax
mov dword [esp + 0x28], eax
call fcn.00510f00
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ebx
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], ebx
mov ecx, dword [edx + eax*4]
call fcn.004ee3e0
cmp ebx, eax
mov ebx, dword [esp + 0x1c]
jl 0x466768
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0051af0e
mov ecx, dword [esp + 0x20]
inc ebx
add ecx, 0x2710
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
cmp ebx, dword [ecx + 8]
jl 0x4666ba
push edi
mov ecx, esi
call fcn.00510f00
mov ecx, esi
call fcn.00512820
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8