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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [str.BYLAYER]
mov ecx, dword [0x56cdb8]
push ebx
push esi
push edi
xor esi, esi
push 0xc0
push 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1e7], 0
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
call fcn.00547150
mov edi, eax
add esp, 8
cmp edi, esi
mov dword [esp + 0x18], edi
jne 0x43be43
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0xc]
mov dword [esp + 0x60], 1
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x3ff00000
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004383e0
add esp, 4
mov ebx, eax
cmp ebx, 0x46
jne 0x43bed5
mov al, byte [esp + 0xc]
and al, 1
cmp al, 1
jne 0x43bfd7
mov dword [esp + 0x24], 1
jmp 0x43bfd7
cmp ebx, 6
jne 0x43befa
mov ecx, dword [esp + 0xc]
push 0xff
lea edx, [esp + 0xe4]
push ecx
push edx
call dword [0x550c78]
add esp, 0xc
jmp 0x43bfd7
cmp ebx, 8
jne 0x43bf11
mov eax, dword [esp + 0xc]
push eax
call fcn.0043c570
add esp, 4
jmp 0x43bfd7
cmp ebx, 0x26
jne 0x43bf2b
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x43bfd7
cmp ebx, 0x27
jne 0x43bf4f
cmp dword [ebp + 0xc], 1
je 0x43bfd7
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x43bfd7
cmp ebx, 0xd2
jne 0x43bf69
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jmp 0x43bfd7
cmp ebx, 0xdc
jne 0x43bf83
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
jmp 0x43bfd7
cmp ebx, 0xe6
jne 0x43bf9d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jmp 0x43bfd7
cmp ebx, 0x2b
jne 0x43bfb4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x43bfd7
cmp ebx, 0x5a
jne 0x43bfc4
movsx ecx, word [esp + 0xc]
mov dword [esp + 0x64], ecx
jmp 0x43bfd7
cmp ebx, 0xa
je 0x43c004
cmp ebx, 0x14
je 0x43c004
cmp ebx, 0x2a
je 0x43c004
cmp ebx, esi
je 0x43bfe6
lea edx, [esp + 0xc]
push edx
call fcn.004383e0
add esp, 4
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43beb5
push edi
call fcn.004888a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jge 0x43c014
test ebx, ebx
jne 0x43c020
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43c321
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
test eax, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
je 0x43c05c
mov ecx, 6
lea esi, [esp + 0x98]
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
jmp 0x43c0d1
xor esi, esi
cmp ebx, 0xa
jne 0x43c087
test esi, esi
jne 0x43c0d1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
inc eax
mov esi, 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], eax
jmp 0x43c0be
cmp ebx, 0x14
jne 0x43c09e
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jmp 0x43c0be
cmp ebx, 0x2a
jne 0x43c0b5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x43c0be
cmp ebx, 0xffffffff
je 0x43c2da
lea eax, [esp + 0xc]
push eax
call fcn.004383e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43c05e
mov eax, dword [esp + 0x60]
test eax, eax
je 0x43c0f8
mov ecx, 6
lea esi, [esp + 0x40]
lea edi, [esp + 0x98]
mov dword [esp + 0x60], 0
rep movsd dword es:[edi], dword [esi]
jmp 0x43c2a3
fld qword [esp + 0x58]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x43c155
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push esi
lea edx, [esp + 0xb4]
push ecx
push edx
call fcn.0043f9f0
add esp, 0xc
test eax, eax
je 0x43c2f3
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x58]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.004113d0
add esp, 0x14
test eax, eax
jne 0x43c529
jmp 0x43c2a3
fld qword [esp + 0x58]
fabs
fst qword [esp + 0x90]
fld1
fpatan
fmul qword [0x550f60]
fmul qword [0x551120]
fabs
fst qword [esp + 0x80]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x41
jne 0x43c2a3
lea edx, [esp + 0x40]
lea eax, [esp + 0xb0]
push edx
push eax
call fcn.00418a80
fld qword [esp + 0x88]
fmul qword [0x550f68]
add esp, 8
fmul qword [0x550f08]
fsin
fadd st(0), st(0)
fdivp st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x90]
fcomp qword [0x550f30]
fnstsw ax
test ah, 0x41
jne 0x43c1dc
mov ecx, 1
jmp 0x43c1de
xor ecx, ecx
fld qword [esp + 0x58]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x43c1f6
mov eax, 1
jmp 0x43c1f8
xor eax, eax
mov esi, dword [esp + 0x8c]
lea edx, [esp + 0xc8]
mov edi, dword [esp + 0x88]
push edx
push ecx
push eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xbc]
push eax
push ecx
push esi
push edi
call fcn.00408e00
fld qword [esp + 0x74]
fcomp qword [0x550f20]
add esp, 0x1c
fnstsw ax
test ah, 1
je 0x43c23f
mov eax, 1
jmp 0x43c241
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push ecx
push edx
push esi
lea ecx, [esp + 0xd8]
push edi
push ecx
lea edx, [esp + 0x58]
lea ecx, [esp + 0xc8]
push edx
push ecx
push eax
call fcn.0043fa90
add esp, 0x24
test eax, eax
je 0x43c308
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x70]
push eax
push ecx
push edx
call fcn.004113d0
add esp, 0x14
test eax, eax
jne 0x43c529
mov eax, dword [esp + 0x1c]
mov ecx, 6
lea esi, [esp + 0x40]
lea edi, [esp + 0xb0]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x43c321
test ebx, ebx
jne 0x43c004
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43c321
mov dword [esp + 0x1c], 1
jmp 0x43c004
mov eax, dword [esp + 0x18]
push eax
call fcn.004888a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004888a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004888a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov dword [edx], ebx
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [0x584ab4]
mov ecx, dword [0x584ab0]
push eax
push ecx
push esi
call fcn.00481820
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0xa4], edx
test eax, eax
jne 0x43c37a
push 0xc0
push 1
push esi
call fcn.0054714a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xe0]
mov dword [esi + 0x38], 1
push eax
call fcn.0043ac00
mov ecx, dword [esi + 4]
and eax, 0xf
shl eax, 0xc
and ch, 0xf
push 0x5789a0
or eax, ecx
push esi
mov dword [esi + 4], eax
mov edx, dword [0x578928]
and edx, 7
and ah, 0xf1
shl edx, 9
or edx, eax
mov dword [esi + 4], edx
call fcn.004102f0
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x43c3d2
mov eax, dword [esi]
and ah, 0xfe
mov dword [esi], eax
jmp 0x43c3e8
mov eax, dword [0x584ab4]
mov ecx, dword [0x584ab0]
push eax
push ecx
push esi
call fcn.00481440
add esp, 0xc
mov edx, dword [esi]
push esi
and edx, 0xfffffffe
or edx, 2
mov dword [esi], edx
call fcn.004890b0
push esi
call fcn.00441c50
fld qword [esp + 0x40]
fcomp qword [0x550f20]
add esp, 8
fnstsw ax
test ah, 0x40
jne 0x43c46c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43c46c
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edi
push eax
push ecx
push esi
call fcn.0043bc40
add esp, 0x10
test eax, eax
push esi
jne 0x43c450
call fcn.004888a0
add esp, 4
mov dword [0x578930], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004894b0
add esp, 8
mov dword [0x578930], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004894b0
fld qword [esp + 0x38]
fcomp qword [0x550f20]
add esp, 8
fnstsw ax
test ah, 0x40
jne 0x43c559
push esi
xor edi, edi
call fcn.004889e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c4ab
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43c4d2
push eax
call fcn.00449a40
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], eax
jne 0x43c4d2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xa8], edx
lea edx, [esp + 0x98]
push edx
push eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb4], ecx
call fcn.004b54b0
add esp, 8
test eax, eax
jne 0x43c535
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
mov dword [esi + 0xa4], eax
call fcn.004894b0
add esp, 8
test edi, edi
je 0x43c559
push 0x218
push 1
push edi
call fcn.0054714a
add esp, 0xc
pop edi
pop esi
mov dword [0x578930], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret