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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x188
mov eax, dword [str.BYLAYER]
mov ecx, dword [0x56cdb8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x550c78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0x54442d18
mov dword [esp + 0x24], 0x401921fb
mov dword [esp + 0xc], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x18f], bl
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x3ff00000
lea edx, [esp + 0x10]
push edx
call fcn.004383e0
add esp, 4
cmp eax, 6
jne 0x43cb25
mov eax, dword [esp + 0x10]
push 0xff
lea ecx, [esp + 0x94]
push eax
push ecx
call esi
add esp, 0xc
jmp 0x43cafa
cmp eax, 0xa
jne 0x43cb3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
jmp 0x43cafa
cmp eax, 0x14
jne 0x43cb59
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
jmp 0x43cafa
cmp eax, 0x1e
jne 0x43cb76
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
jmp 0x43cafa
cmp eax, 0xb
jne 0x43cb90
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x43cafa
cmp eax, 0x15
jne 0x43cbaa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
jmp 0x43cafa
cmp eax, 0x1f
jne 0x43cbc4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jmp 0x43cafa
cmp eax, 0x28
jne 0x43cbde
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x43cafa
cmp eax, 0x29
jne 0x43cbf8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x43cafa
cmp eax, 0x2a
jne 0x43cc12
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x43cafa
cmp eax, 0xd2
jne 0x43cc2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x43cafa
cmp eax, 0xdc
jne 0x43cc4a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
jmp 0x43cafa
cmp eax, 0xe6
jne 0x43cc66
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
jmp 0x43cafa
cmp eax, 8
jne 0x43cc85
mov edx, dword [esp + 0x10]
push edx
call fcn.0043c570
add esp, 4
test eax, eax
je 0x43cec5
jmp 0x43cafa
cmp eax, 0xffffffff
je 0x43cec5
cmp eax, ebx
jne 0x43cafa
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x50]
push eax
call fcn.004189c0
fadd st(0), st(0)
add esp, 4
mov dword [esp + 0x70], 4
mov dword [esp + 0x74], 8
fst dword [esp + 0x68]
fmul qword [esp + 0x18]
fstp dword [esp + 0x6c]
fld qword [esp + 0x28]
fmul qword [0x550f60]
fst qword [esp + 0x28]
fld qword [esp + 0x20]
fmul qword [0x550f60]
fstp qword [esp + 0x20]
fld qword [esp + 0x48]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x43cd2b
fld qword [0x550f28]
fsub qword [esp + 0x20]
fstp qword [esp + 0x28]
fld qword [0x550f28]
fsub st(1)
fstp qword [esp + 0x20]
fstp st(0)
fld qword [esp + 0x48]
fchs
fstp qword [esp + 0x48]
jmp 0x43cd2d
fstp st(0)
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00445e70
add esp, 0x18
test eax, eax
jne 0x43cec5
fld qword [esp + 0x50]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x43cd8f
fld qword [esp + 0x58]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x43cd8f
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jmp 0x43cda3
fld qword [esp + 0x58]
fld qword [esp + 0x50]
fpatan
fmul qword [0x550f60]
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
push ebx
push ecx
push edx
push eax
call fcn.004a9cd0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
push ecx
push edx
call fcn.004a9e20
mov eax, dword [esp + 0x24]
add esp, 0x18
mov esi, dword [eax + 0xc]
cmp esi, ebx
je 0x43ce13
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x34]
push eax
push esi
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call fcn.004113d0
add esp, 0x14
test eax, eax
jne 0x43cecd
mov eax, dword [esp + 0xc]
mov esi, dword [esi + 0xc]
cmp esi, dword [eax + 0xc]
je 0x43ce13
cmp esi, ebx
jne 0x43cdd8
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xa4], ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x90]
push eax
mov dword [edx + 0x38], 1
call fcn.0043ac00
mov ecx, dword [esp + 0x10]
and eax, 0xf
shl eax, 0xc
mov edx, dword [ecx + 4]
push 0x5789a0
and dh, 0xf
or eax, edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x578928]
mov edx, dword [eax + 4]
and ecx, 7
shl ecx, 9
and dh, 0xf1
or ecx, edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x14]
push eax
call fcn.004102f0
mov ecx, dword [0x584ab4]
mov edx, dword [0x584ab0]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00481440
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
and ecx, 0xfffffffe
or ecx, 2
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
push edx
call fcn.004890b0
mov eax, dword [esp + 0x28]
push eax
call fcn.00441c50
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004894b0
add esp, 0x28
mov dword [0x578930], ebx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret