Function at 0x40f170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x498ecc
push str.CodeSSv.ddi
mov edi, ecx
call fcn.0045af79
mov esi, eax
mov dword [ebp - 8], 0
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
test esi, esi
je 0x40f5ed
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x40]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.0045b20f
add esp, 0x40
lea eax, [ebp - 0x38]
push esi
push 1
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0045b20f
add esp, 0x40
lea eax, [ebp - 0x28]
push esi
push 1
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x24]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.0045b20f
add esp, 0x40
lea eax, [ebp - 0x10]
push esi
push 1
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.0045b20f
push esi
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call fcn.0045b20f
add esp, 0x40
push esi
call fcn.0045ac26
add esp, 4
cmp dword [ebp - 8], 0
jbe 0x40f71b
mov esi, dword [ebp - 0x20]
mov eax, 0x66666667
imul esi
push ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
add ecx, ecx
sub eax, ecx
mov ecx, 0x3e8
mov eax, 0x51eb851f
setne bl
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv ecx
mov eax, dword [0x4b4bec]
mov dword [eax + 0x22e0], edx
mov eax, 0x51eb851f
imul dword [ebp - 0x1c]
mov eax, dword [0x4b4bec]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [eax + 0x22e8], ecx
mov eax, 0x14f8b589
imul dword [ebp - 0x20]
mov eax, dword [0x4b4bec]
sar edx, 0xd
mov ecx, edx
dec edx
shr ecx, 0x1f
add ecx, edx
mov dword [eax + 0x22e4], ecx
mov eax, 0x51eb851f
mov esi, dword [ebp - 4]
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, ecx, 0x64
mov dword [ebp - 4], ecx
sub esi, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, dword [0x4b4bec]
mov dword [eax + 0x46c], ecx
mov eax, 0x51eb851f
imul dword [ebp - 4]
mov eax, 0x51eb851f
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx
mov dword [ebp - 4], ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, dword [0x4b4bec]
mov dword [eax + 0x470], ecx
mov eax, 0x51eb851f
imul dword [ebp - 4]
sar edx, 5
mov eax, dword [0x4b4bec]
mov ecx, edx
push ebx
shr ecx, 0x1f
add ecx, edx
mov dword [eax + 0x474], ecx
push dword [ebp - 0x24]
mov ecx, dword [0x4b4bec]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 8]
call fcn.0044d340
mov esi, dword [ebp - 0xc]
mov eax, 0x51eb851f
imul esi
mov ecx, dword [ebp - 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub esi, eax
mov eax, 0x51eb851f
imul ecx
mov dword [0x4b3538], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, 0x51eb851f
mov dword [0x4b353c], ecx
mov ecx, dword [ebp - 0x14]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, 0x51eb851f
mov dword [0x4b3540], ecx
mov ecx, dword [ebp - 0x18]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov eax, 0x51eb851f
imul esi
mov dword [0x4b3544], ecx
mov ecx, dword [0x4b4bd8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub esi, eax
push esi
push 0
call fcn.0040dc50
mov ecx, dword [0x4b353c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
push ecx
push 1
mov ecx, dword [0x4b4bd8]
call fcn.0040dc50
mov ecx, dword [0x4b3540]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
push ecx
mov ecx, dword [0x4b4bd8]
push 2
call fcn.0040dc50
mov ecx, dword [0x4b3544]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
push ecx
mov ecx, dword [0x4b4bd8]
push 3
call fcn.0040dc50
mov eax, 0x51eb851f
imul dword [ebp - 0x14]
mov eax, dword [0x4b4bc0]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [eax + 0x230], ecx
mov eax, 0x51eb851f
imul dword [ebp - 0x10]
mov ecx, dword [0x4b4bec]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, 0x51eb851f
imul dword [ebp - 0xc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0044d110
mov ecx, dword [0x4b4bec]
mov eax, 0x51eb851f
imul dword [ebp - 0x18]
mov eax, 0x51eb851f
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ecx + 0x4a4], esi
mov ecx, dword [ebp - 0x1c]
imul ecx
pop ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
mov dword [edi + 0x228], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b4bbc]
push 0x989680
call fcn.00434b10
mov dword [ebp - 8], eax
mov eax, dword [0x4b4bec]
push 1
mov dword [ebp - 0x40], 0x32
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x7530
mov dword [ebp - 0x34], 0xf4240
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x8df13a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x2710
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
mov dword [eax + 0x46c], 0
mov eax, dword [0x4b4bec]
mov dword [eax + 0x470], 0
push dword [ebp - 0x24]
mov ecx, dword [0x4b4bec]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 5
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 8]
call fcn.0044d340
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [0x4b353c], eax
mov eax, dword [ebp - 0x14]
push ecx
mov dword [0x4b3538], ecx
mov ecx, dword [0x4b4bd8]
mov dword [0x4b3540], eax
mov eax, dword [ebp - 0x18]
push 0
mov dword [0x4b3544], eax
call fcn.0040dc50
push dword [0x4b353c]
mov ecx, dword [0x4b4bd8]
push 1
call fcn.0040dc50
push dword [0x4b3540]
mov ecx, dword [0x4b4bd8]
push 2
call fcn.0040dc50
push dword [0x4b3544]
mov ecx, dword [0x4b4bd8]
push 3
call fcn.0040dc50
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x228], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret