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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x514dfb
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 0x45d669
lea edi, [esi + 0xe8]
push 0xb
push edi
call fcn.0045c2b0
push 0
mov ecx, edi
call fcn.005010f0
mov eax, 1
mov ebx, 0x544b4c
mov dword [esi + 0x168], eax
mov dword [esi + 0x17c], eax
mov edx, 0x542e90
mov ecx, 0x545328
mov eax, 0x542e60
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, 0x542e34
mov ecx, str.Plan
mov eax, str.Annotate
mov dword [esp + 0xac], 0x546358
mov dword [esp + 0xb0], 0x5433f8
mov dword [esp + 0xb4], 0x545308
mov dword [esp + 0xb8], 0x542c54
mov dword [esp + 0xbc], 0x542e70
mov dword [esp + 0xc0], 0x54634c
mov dword [esp + 0xcc], 0x546510
mov dword [esp + 0x28], 0x546358
mov dword [esp + 0x2c], 0x5433f8
mov dword [esp + 0x30], 0x545314
mov dword [esp + 0x34], 0x542c54
mov dword [esp + 0x38], 0x542e70
mov dword [esp + 0x3c], 0x54634c
mov dword [esp + 0x48], 0x546500
mov dword [esp + 0x54], str.Mark
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], str.Mark
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.0046a150
test eax, eax
je 0x45d627
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.00501da0
inc ebx
cmp ebx, 0xb
jl 0x45d608
jmp 0x45d646
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.00501da0
inc ebx
cmp ebx, 0xb
jl 0x45d629
mov ecx, edi
call fcn.00502890
push 0
mov ecx, edi
call fcn.00502790
push 0
mov ecx, edi
call fcn.00502520
push eax
push 1
mov ecx, edi
call fcn.00502580
add esi, 0xe8
push 2
mov ecx, esi
call fcn.00501230
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 0x45d95c
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 0x45d96b
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e0ae0
test al, al
je 0x45d93c
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.0050b33c
mov eax, dword [esp + 0x14]
mov dword [esp + 0xe0], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45d722
call fcn.0040f890
mov eax, dword [eax + 0x60]
test eax, eax
je 0x45d6fb
cmp eax, 2
jne 0x45d714
push 0x545368
call fcn.00439360
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.0050b2e2
jmp 0x45d722
push str.Empty_Name
lea ecx, [esp + 0x18]
call fcn.0050b2d6
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx*4]
call fcn.004dfca0
test eax, eax
jle 0x45d928
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.004dfcb0
mov ecx, dword [0x5273c8]
mov ebx, eax
push ecx
mov eax, dword [ebx + 0xc0]
push eax
nop
call fcn.00607dfe
add esp, 8
test eax, eax
je 0x45d900
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, eax
mov ecx, esi
push edx
push 0
push edi
call fcn.00501f90
mov eax, dword [ebx + 0xc0]
push 0
push eax
push 0
push edi
mov ecx, esi
call fcn.00501da0
mov eax, dword [ebx + 0x10]
push 0
push eax
push 1
push edi
mov ecx, esi
call fcn.00501da0
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
push 0
push ecx
push edx
call fcn.0046a5f0
mov eax, dword [eax]
add esp, 0xc
mov ecx, esi
push 0
push eax
push 2
push edi
call fcn.00501da0
mov eax, dword [ebx + 0x12c]
mov eax, dword [eax]
push eax
push 0
push 0x542bdc
push 3
push edi
push esi
call fcn.00501e60
mov eax, dword [ebx + 0x20]
add esp, 0x18
test eax, eax
jne 0x45d805
push str.single_direction
push 0x542d84
jmp 0x45d836
cmp eax, 1
jne 0x45d82c
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x45d820
push str.double_fold
push 0x542e68
jmp 0x45d836
push str.double_direction
push 0x542d68
jmp 0x45d836
push str.multi_direction
push 0x542d50
push 4
push edi
mov ecx, esi
call fcn.00501da0
mov ecx, dword [ebx + 0x108]
push ecx
push 0
push 0x542bdc
push 5
push edi
push esi
call fcn.00501e60
mov edx, dword [ebx + 0x10c]
add esp, 0x18
push edx
push 0
push 0x542bdc
push 6
push edi
push esi
call fcn.00501e60
fld qword [ebx + 0xf8]
fmul qword [0x5205c0]
add esp, 0x10
fstp qword [esp]
push 0
push 0x542da8
push 7
push edi
push esi
call fcn.00501e60
fld qword [0x5205c0]
fsub qword [ebx + 0x28]
add esp, 0x1c
fdivr qword [0x5205c0]
push 0
sub esp, 8
fmul qword [ebx + 0x100]
fstp qword [esp]
call fcn.0046a5f0
mov eax, dword [eax]
add esp, 0xc
mov ecx, esi
push 0
push eax
push 8
push edi
call fcn.00501da0
mov eax, dword [esp + 0x14]
push 0
push eax
push 9
push edi
mov ecx, esi
call fcn.00501da0
mov ebx, dword [ebx + 0xc4]
push 0
push ebx
push 0xa
push edi
mov ecx, esi
call fcn.00501da0
mov eax, dword [esp + 0x24]
inc edi
inc eax
mov ecx, esi
push eax
mov dword [esp + 0x28], eax
call fcn.00501230
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.004dfca0
cmp ebx, eax
mov ebx, dword [esp + 0x1c]
jl 0x45d748
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0050b22e
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 0x45d69a
push edi
mov ecx, esi
call fcn.00501230
mov ecx, esi
call fcn.00502b50
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8