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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
fld qword [0x43a678]
fcomp qword [0x431158]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], 0
fnstsw ax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test ah, 0x40
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push ecx
jne 0x4058f9
push str._0.1f
jmp 0x4058fe
push 0x43308c
lea edx, [esp + 0x118]
push edx
call fcn.00428d42
mov ebx, dword [ebp + 0x14]
add esp, 0x10
push 1
push ebx
call fcn.0041d160
push str.continuous
call fcn.0041dae0
add esp, 0xc
cmp ebx, 2
jne 0x405938
push str.continuousx
call fcn.0041dae0
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00426fb0
fstp qword [esp]
call fcn.0041dbf0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [esi]
mov dword [esp + 0x7c], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x88], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x1a0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0x14]
push eax
push str.Rdcad.ini
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
call fcn.004233d0
add esp, 0x10
cmp eax, 0x13ec
je 0x4059dd
push str.RDCAD.INI
call fcn.00425df0
add esp, 4
mov eax, 0xffffec77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [esp + 0xc0]
push str.wid__d
push ecx
call fcn.00428d42
lea edx, [esp + 0x34]
lea eax, [esp + 0xc8]
push edx
push eax
lea ecx, [esp + 0x1ac]
push str.Hole
push ecx
call fcn.0041e0e0
lea edx, [esp + 0xd8]
lea eax, [esp + 0x1b4]
push edx
push str.lenOver
push str.Hole
push eax
call fcn.0041e0a0
lea ecx, [esp + 0xe8]
push ecx
call fcn.00428d37
neg eax
mov edx, dword [esp + 0x5c]
push 0
sbb eax, eax
push edx
and eax, 2
dec eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
push eax
push 0x1389
call fcn.004257d0
add esp, 0x40
mov esi, eax
push esi
push str.PLINEWID
call fcn.004232b0
push esi
call fcn.00428160
push 0
push 0
push 0x138b
call fcn.004257d0
mov esi, eax
push esi
push str.OSMODE
call fcn.004232b0
push esi
call fcn.00428160
push 0x1388
push 0x43a598
lea ecx, [esp + 0x80]
push 0x138d
push ecx
lea edx, [esp + 0xa0]
push 0x138a
push edx
push 0x138a
push str.PLINE
push 0x138d
call fcn.004252b0
add esp, 0x48
lea eax, [esp + 0x34]
push eax
call fcn.004245c0
fld qword [0x43a658]
fmul qword [0x4311a8]
add esp, 4
mov esi, 0x43310c
mov eax, 0x43a5e4
fadd qword [0x4311a0]
fstp qword [0x43a658]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405b22
test cl, cl
je 0x405b1e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405b22
add eax, 2
add esi, 2
test cl, cl
jne 0x405afe
xor eax, eax
jmp 0x405b27
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405b5d
mov eax, dword [0x43a65c]
mov ecx, dword [0x43a658]
mov edx, dword [ebp + 0x10]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00405fc0
add esp, 0x10
cmp eax, 0x13ec
je 0x405b5d
push str.cant_break
call fcn.00425df0
add esp, 4
lea ecx, [esp + 0x54]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00426f40
fcom qword [0x431158]
fst qword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x405b97
fsub qword [0x431150]
fcom qword [0x431158]
fnstsw ax
test ah, 0x41
je 0x405b80
fst qword [esp + 0x18]
fcom qword [0x431158]
fnstsw ax
test ah, 1
je 0x405bbb
fadd qword [0x431150]
fcom qword [0x431158]
fnstsw ax
test ah, 1
jne 0x405ba4
fst qword [esp + 0x18]
fcom qword [0x431198]
fnstsw ax
test ah, 0x41
jne 0x405bdf
fcom qword [0x431190]
fnstsw ax
test ah, 1
je 0x405bdf
fsub qword [0x431138]
fst qword [esp + 0x18]
fld qword [esp + 0x54]
fadd qword [esp + 0x6c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov esi, 0x43310c
mov eax, 0x43a5e4
fmul qword [0x431168]
fstp qword [esp + 0xa4]
fld qword [esp + 0x5c]
fadd qword [esp + 0x74]
fmul qword [0x431168]
fstp qword [esp + 0xac]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405c4d
test cl, cl
je 0x405c49
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405c4d
add eax, 2
add esi, 2
test cl, cl
jne 0x405c29
xor eax, eax
jmp 0x405c52
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x405cfc
fild dword [esp + 0x24]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xa4]
push eax
push 0x3ff40000
fmul qword [0x431188]
push 0
sub esp, 8
fsubr st(1)
fstp qword [esp]
push ecx
fstp st(0)
call fcn.00426fe0
fld qword [esp + 0x5c]
fsub qword [0x431180]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
push 0x3fe33333
push 0x33333333
push 2
push 1
fstp qword [esp + 0xbc]
push 0x43a5f4
push esi
push edi
push 0x40040000
lea ecx, [esp + 0xc4]
push 0
push ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
call fcn.0041de80
fld qword [esp + 0x58]
add esp, 0x40
fld qword [ebp + 0x1c]
fcomp qword [0x431178]
fnstsw ax
test ah, 0x41
jne 0x405da2
fild dword [esp + 0x24]
lea edx, [esp + 0x3c]
lea eax, [esp + 0xa4]
push edx
push 0x40000000
fmul qword [0x431188]
push 0
sub esp, 8
fadd st(1)
fstp qword [esp]
push eax
fstp st(0)
call fcn.00426fe0
push 0x3fe33333
push 0x33333333
push 2
lea ecx, [esp + 0x130]
push 1
push ecx
push esi
push edi
push 0x40040000
lea edx, [esp + 0x74]
push 0
push edx
call fcn.0041de80
add esp, 0x40
lea eax, [esp + 0x84]
push eax
call fcn.004245c0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00407210
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.004069b0
add esp, 0x14
jmp 0x405da4
fstp st(0)
push str.3600
lea edx, [esp + 0x10]
push str._CODE
push edx
call fcn.0041e5b0
push ebx
lea eax, [esp + 0xf4]
push 0x4326bc
push eax
call fcn.00428d42
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xfc]
push ecx
push str.STATUS
push edx
call fcn.0041e5b0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x130]
push ecx
push str.LENGTH
mov esi, dword [eax]
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push str.BASEHEIGH
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push str.No_1
push str.fence1
push esi
call fcn.0041e5b0
mov esi, dword [esi]
add esp, 0x48
push 0x43a598
push str.name1
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push 0x433194
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push 0x433190
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push str.dia1
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push str.min_dist1
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push str.No_2
push str.fence2
push esi
call fcn.0041e5b0
mov esi, dword [esi]
add esp, 0x48
push 0x43a598
push str.name2
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push 0x433160
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push 0x43315c
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push str.dia2
push esi
call fcn.0041e5b0
mov esi, dword [esi]
push 0x43a598
push str.min_dist2
push esi
call fcn.0041e5b0
fld qword [ebp + 0x1c]
fcomp qword [0x431178]
add esp, 0x3c
fnstsw ax
test ah, 0x41
jne 0x405f16
mov esi, dword [esi]
lea edx, [esp + 0x170]
push edx
push str.ENTLENGTH
push esi
call fcn.0041e5b0
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10c]
push eax
push 2
push ecx
call fcn.00425ce0
fld qword [esp + 0x1c]
fmul qword [0x431170]
lea ecx, [esp + 0x118]
fstp qword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
push str._.4f
push ecx
call fcn.00428d42
add esp, 0x1c
test ebx, ebx
je 0x405f95
lea edx, [esp + 0x10c]
lea eax, [ebx*8 + 0x432fdc]
push edx
push eax
lea ecx, [esp + 0xec]
push 0x433120
push ecx
call fcn.00428d42
mov eax, dword [esi]
lea edx, [esp + 0xf4]
push edx
push str.PROJECT
push eax
call fcn.0041e5b0
add esp, 0x1c
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0041e850
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e670
add esp, 0xc
mov eax, 0x13ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret