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

Disassembly:
push 0xffffffffffffffff
push 0x5defe5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor edi, edi
mov ecx, dword [esi + 0x2d4]
cmp ecx, ebx
je 0x593648
mov eax, dword [esi + 0x2d8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x593648
cmp ecx, ebx
je 0x59362d
mov eax, dword [esi + 0x2d8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x593632
call fcn.005b2af7
mov eax, dword [esi + 0x2d4]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
push ebx
call eax
add edi, 1
jmp 0x593601
mov ecx, dword [esi + 0x2e0]
cmp ecx, ebx
je 0x59366e
fld qword [0x613ed8]
mov edx, dword [esi + 0x38]
sub esp, 8
fstp qword [esp]
push 1
push ebx
neg edx
push edx
push ebx
push ebx
call fcn.00557670
mov eax, dword [esi + 0x304]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0x304], ecx
jne 0x5936a1
mov edx, dword [esi]
mov eax, dword [edx + 0x150]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push 0x280
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebx
mov dword [esp + 0x5c], ebx
mov ebp, 0xf
je 0x593751
push 8
push str.sushimat
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
push 5
push str.mat_y
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x63e65c
mov dword [esp + 0x60], 2
mov dword [esp + 0x18], 3
call fcn.00520690
fld1
mov eax, dword [eax]
push ebx
push 4
sub esp, 8
fstp qword [esp]
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00560e70
push eax
mov eax, dword [esi + 0x38]
push eax
mov ecx, edi
call fcn.00557ba0
jmp 0x593753
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x60], 4
mov dword [esi + 0x2e0], eax
call fcn.00585fc0
test byte [esp + 0x14], 2
mov edi, 0x10
je 0x593799
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x34], edi
jb 0x59378d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
test byte [esp + 0x14], 1
mov dword [esp + 0x5c], 0xffffffff
je 0x5937bb
cmp dword [esp + 0x50], edi
jb 0x5937bb
mov edx, dword [esp + 0x3c]
push edx
call fcn.005b28f2
add esp, 4
push 5
push str.mat_x
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
fld qword [0x613ed8]
sub esp, 8
fstp qword [esp]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov dword [esp + 0x78], 5
call fcn.00560e70
mov ecx, dword [esi + 0x2e0]
push eax
call fcn.00557670
cmp dword [esp + 0x50], edi
jb 0x59381a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005b28f2
add esp, 4
mov edx, dword [esi + 0x2e0]
mov eax, dword [edx + 0x3c]
sub eax, 0x28
mov dword [esi + 0x2f0], eax
mov ebp, dword [esi + 0x2fc]
cmp dword [esi + 0x2f8], ebp
jbe 0x59383f
call fcn.005b2af7
mov edi, dword [esi + 0x2f8]
cmp edi, dword [esi + 0x2fc]
jbe 0x593852
call fcn.005b2af7
cmp edi, ebp
je 0x593889
mov eax, dword [esi + 0x2fc]
sub eax, ebp
sar eax, 2
cmp eax, ebx
lea ecx, [eax*4]
lea edx, [ecx + edi]
mov dword [esp + 0x14], edx
jle 0x59387f
push ecx
push ebp
push ecx
push edi
call fcn.005b2972
add esp, 0x10
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x308], ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret