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

Disassembly:
mov eax, dword [0x3b599620]
sub esp, 0x50
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
mov ebp, ecx
je 0x3b50b49b
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x70]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x6c]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push ebx
push str.CTWMHelper::GetTileBlockArray_________Angle:__d___sizeBlock:__d__d___sizeBlockTilt:__d__d___rectPageBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x34
jmp 0x3b50b4a3
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
push 0
call fcn.3b50e290
mov ecx, dword [edi]
mov eax, dword [edi + 8]
sub eax, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fmul qword [0x3b577648]
fst qword [esp + 0x40]
fcos
fst qword [esp + 0x30]
fcomp qword [0x3b577650]
fnstsw ax
test ah, 0x40
jne 0x3b50b9d8
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x74], eax
je 0x3b50b9d8
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x14], eax
je 0x3b50b9d8
fild dword [esp + 0x18]
fdiv qword [esp + 0x30]
fidiv dword [esp + 0x74]
call fcn.3b546600
fild dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x74], eax
fdiv qword [esp + 0x30]
fidiv dword [esp + 0x14]
call fcn.3b546600
mov edx, eax
xor eax, eax
add edx, 2
cmp ebx, eax
mov dword [esp + 0x14], edx
jge 0x3b50b55e
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x74], edx
mov dword [esp + 0x14], ecx
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
test ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
je 0x3b50b5d9
mov eax, dword [esi]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi]
sar ebx, 1
sar ecx, 1
sub ecx, ebx
add ecx, eax
mov eax, dword [esi + 4]
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
mov ebx, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [edi + 4]
sar ebx, 1
sar eax, 1
sub eax, ebx
mov ebx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
push eax
push ecx
push edx
mov edx, dword [esp + 0x80]
push edx
push str.CTWMHelper::GetTileBlockArray_________M_x_N:__d_x__d___ptStart:__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x20
test ebx, ebx
jle 0x3b50b7ca
mov eax, dword [esp + 0x14]
mov ebx, 1
sub ebx, eax
cmp ebx, eax
jge 0x3b50b990
fld qword [esp + 0x40]
fsin
mov ecx, dword [esp + 0x74]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x18], eax
fstp qword [esp + 0x40]
fild dword [esp + 0x28]
fstp qword [esp + 0x48]
fild dword [esp + 0x2c]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
imul ecx, ebx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fld st(0)
fmul qword [esp + 0x40]
fadd qword [esp + 0x48]
call fcn.3b546600
fmul qword [esp + 0x30]
mov dword [esp + 0x20], eax
fadd qword [esp + 0x28]
call fcn.3b546600
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
push edi
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, ebp
call fcn.3b50bc20
mov eax, dword [0x3b599620]
test eax, eax
je 0x3b50b6dc
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push str.CTWMHelper::GetTileBlockArray__LeftTilt___i:__d__________bOut:__d___ptLineLeftTop:__d__d___rectBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x30
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
cmp esi, eax
jge 0x3b50b7b4
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
imul edx, esi
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fld st(0)
fmul qword [esp + 0x30]
fiadd dword [esp + 0x20]
call fcn.3b546600
fild dword [esp + 0x24]
fxch st(1)
fmul qword [esp + 0x40]
mov dword [esp + 0x38], eax
fsubp st(1)
call fcn.3b546600
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x58]
push ecx
push edx
push edi
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, ebp
call fcn.3b50bc20
mov eax, dword [0x3b599620]
test eax, eax
je 0x3b50b78f
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
push ebx
push str.CTWMHelper::GetTileBlockArray__LeftTilt___i:__d___j:__d___bOut:__d___ptLineLeftTop:__d__d___rectBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x34
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push esi
push ebx
mov ecx, ebp
call fcn.3b50df20
mov eax, dword [esp + 0x74]
inc esi
cmp esi, eax
jl 0x3b50b6ec
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
inc ebx
cmp ebx, eax
jl 0x3b50b641
jmp 0x3b50b990
jge 0x3b50b994
mov eax, dword [esp + 0x14]
mov ebx, 1
sub ebx, eax
cmp ebx, eax
jge 0x3b50b990
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
mov eax, 1
sub eax, ecx
fstp qword [esp + 0x48]
fld qword [esp + 0x40]
fsin
mov dword [esp + 0x18], eax
fstp qword [esp + 0x40]
fild dword [esp + 0x2c]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
imul ecx, ebx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fld st(0)
fmul qword [esp + 0x30]
fadd qword [esp + 0x48]
call fcn.3b546600
fmul qword [esp + 0x40]
mov dword [esp + 0x20], eax
fadd qword [esp + 0x28]
call fcn.3b546600
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
push edi
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, ebp
call fcn.3b50bc20
mov eax, dword [0x3b599620]
test eax, eax
je 0x3b50b8a6
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push str.CTWMHelper::GetTileBlockArray__RightTilt___i:__d__________bOut:__d___ptLineLeftTop:__d__d___rectBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x30
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
cmp esi, eax
jge 0x3b50b97f
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
imul edx, esi
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fld st(0)
fmul qword [esp + 0x40]
fiadd dword [esp + 0x20]
call fcn.3b546600
fild dword [esp + 0x24]
fxch st(1)
fmul qword [esp + 0x30]
mov dword [esp + 0x38], eax
fsubp st(1)
call fcn.3b546600
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x58]
push ecx
push edx
push edi
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, ebp
call fcn.3b50bc20
mov eax, dword [0x3b599620]
test eax, eax
je 0x3b50b95a
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
push ebx
push str.CTWMHelper::GetTileBlockArray__RightTilt___i:__d___j:__d___bOut:__d___ptLineLeftTop:__d__d___rectBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x34
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push esi
push ebx
mov ecx, ebp
call fcn.3b50df20
mov eax, dword [esp + 0x74]
inc esi
cmp esi, eax
jl 0x3b50b8b6
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
inc ebx
cmp ebx, eax
jl 0x3b50b80c
mov ebx, dword [esp + 0x64]
mov eax, dword [0x3b599620]
test eax, eax
je 0x3b50b9d8
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push ebx
push str.CTWMHelper::GetTileBlockArray_________Angle:__d___sizeBlock:__d__d___sizeBlockTilt:__d__d___rectPageBlock:__d__d__d__d_
push str.Helper
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c