Function at 0x407f20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x451099
mov eax, dword fs:[0]
push eax
mov eax, 0x149c
call fcn.00447a30
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x1498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e1ac]
xor eax, esp
push eax
lea eax, [esp + 0x14b0]
mov dword fs:[0], eax
push 0x1894
mov ebx, ecx
call fcn.0043b07e
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor ebp, ebp
mov dword [esp + 0x14b8], ebp
cmp esi, ebp
je 0x407f94
lea ecx, [esi + 0x208]
mov dword [esi], vtable.cControlSystem.0
call fcn.0043a230
jmp 0x407f96
xor esi, esi
mov dword [esp + 0x14b8], 0xffffffff
mov dword [0x461030], esi
call fcn.004337d0
push 0x668
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x407fc6
mov esi, eax
call fcn.00421fd0
jmp 0x407fc8
xor eax, eax
mov dword [0x46101c], eax
call fcn.00422b80
push 0x354
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x40800e
call fcn.00401c40
mov dword [eax], vtable.cFreeGame.0
mov dword [eax + 0x324], ebp
mov dword [eax + 0x328], ebp
mov dword [eax + 0x32c], ebp
mov dword [eax + 0x330], ebp
mov dword [eax + 0x334], ebp
jmp 0x408010
xor eax, eax
mov dword [0x460ff8], eax
call fcn.0041f5d0
mov eax, dword [0x461010]
push 1
push eax
call fcn.00436630
mov ecx, dword [0x461010]
push 2
push ecx
call fcn.00436630
mov edx, dword [0x461010]
push 3
push edx
call fcn.00436630
mov eax, dword [0x461010]
push 4
push eax
call fcn.00436630
push 0xc9c
call fcn.0043b07e
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x408097
call fcn.00401c40
mov dword [esi], vtable.cCardSystem.0
mov dword [esi + 0x324], ebp
mov dword [esi + 0x328], ebp
mov dword [esi + 0x810], ebp
lea edi, [esi + 0x32c]
mov ecx, 0x138
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 0x80c], ebp
jmp 0x408099
xor esi, esi
mov dword [0x461020], esi
call fcn.0040df50
push 0x62298
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x4080be
mov esi, eax
call fcn.0041c890
jmp 0x4080c0
xor eax, eax
mov dword [0x461008], eax
call fcn.0041ce80
push 0x480
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x4080e4
mov esi, eax
call fcn.00419ca0
jmp 0x4080e6
xor eax, eax
mov dword [0x461024], eax
call fcn.00419f20
push 0x344
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x408126
call fcn.00401c40
mov dword [eax], vtable.cUiResult.0
mov dword [eax + 0x324], ebp
mov dword [eax + 0x328], ebp
mov dword [eax + 0x32c], ebp
mov dword [eax + 0x330], ebp
jmp 0x408128
xor eax, eax
mov dword [0x461014], eax
call fcn.00429480
push 0x500
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x40814c
mov esi, eax
call fcn.0041f980
jmp 0x40814e
xor eax, eax
mov dword [0x461038], eax
call fcn.0041ff10
push 0x508
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x408170
call fcn.00431ca0
jmp 0x408172
xor eax, eax
mov dword [0x461034], eax
call fcn.00432070
push 0x47c
call fcn.0043b07e
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4081a1
call fcn.00401c40
mov dword [esi], vtable.cShootSaliva.0
call fcn.00414b70
jmp 0x4081a3
xor esi, esi
mov dword [0x46100c], esi
call fcn.00414b70
push 0x400
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x4081c8
mov esi, eax
call fcn.0040a410
jmp 0x4081ca
xor eax, eax
mov dword [0x461028], eax
call fcn.0040ad40
push 0x9c0
call fcn.0043b07e
add esp, 4
cmp eax, ebp
je 0x4081ee
mov esi, eax
call fcn.00429740
jmp 0x4081f0
xor eax, eax
mov dword [0x46102c], eax
call fcn.0042ab40
push 0x458514
push ebp
push ebp
push ebp
push ebp
push 0x81
push ebp
push ebp
push ebp
push 0x320
push ebp
push ebp
push ebp
push 0x19
call dword [sym.imp.GDI32.dll_CreateFontA]
fldz
push 0x3f
fstp qword [esp + 0x38]
mov dword [ebx + 0x18], eax
lea ecx, [esp + 0x1471]
push ebp
or ebx, 0xffffffff
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1478], 0
call fcn.0043c7b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileTime]
add esp, 0xc
xor edi, edi
mov edi, edi
push edi
lea edx, [esp + 0x1470]
push str.codeSSC_02d.M
push edx
call fcn.0043b874
add esp, 0xc
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1474]
push ecx
mov byte [esp + 0x68], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x408371
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x61
jb 0x408371
lea edx, [esp + 0x44]
push edx
push 0
push 0
push esi
call ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [esp + 0x1c]
cdq
mov ecx, 0x64
idiv ecx
push 2
push 0x540be400
mov eax, edx
cdq
push edx
push eax
call fcn.00440e00
mov ecx, eax
movzx eax, word [esp + 0x1e]
imul eax, eax, 0x5f5e100
mov ebx, edx
cdq
add ecx, eax
movzx eax, word [esp + 0x22]
adc ebx, edx
imul eax, eax, 0xf4240
cdq
add ecx, eax
movzx eax, word [esp + 0x24]
adc ebx, edx
imul eax, eax, 0x2710
cdq
add ecx, eax
movzx eax, word [esp + 0x26]
adc ebx, edx
imul eax, eax, 0x64
cdq
add ecx, eax
movzx eax, word [esp + 0x28]
adc ebx, edx
cdq
add ecx, eax
adc ebx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
push esi
fild qword [esp + 0x30]
fstp qword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll__lclose]
fld qword [esp + 0x34]
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x4083ad
mov ebx, dword [esp + 0x18]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x40836f
test ebx, ebx
jne 0x4083af
fstp st(0)
inc edi
cmp edi, 0x64
jl 0x408250
xor edi, edi
xor esi, esi
cmp ebx, edi
jl 0x4083bb
mov ecx, ebx
call fcn.00435b70
test al, al
jne 0x4083ca
mov edi, edi
sub ebx, 1
jns 0x40839a
mov ebx, 0x63
inc esi
cmp esi, 0x64
jge 0x4083bb
mov ecx, ebx
call fcn.00435b70
test al, al
je 0x408390
jmp 0x4083ca
fstp st(1)
mov ebx, edi
fstp qword [esp + 0x34]
mov dword [esp + 0x18], ebx
jmp 0x408371
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [0x461cdf], 1
mov edx, dword [0x461000]
mov eax, dword [edx + 0x378]
push eax
call fcn.00434020
cmp dword [0x45f8d0], edi
je 0x408602
mov eax, dword [0x46378c]
push eax
call fcn.0043c0db
mov eax, dword [0x46378c]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
imul ecx, ecx, 0x64
mov esi, dword [0x45f8d0]
lea edi, [ecx + edx + 0x2e631]
imul edi, edi, 0x64
add edi, dword [eax + 0xc]
mov eax, 0xd1b71759
mul esi
mov ecx, edx
shr ecx, 0xd
mov edx, ecx
imul edx, edx, 0x2710
mov eax, esi
sub eax, edx
mov esi, 0x64
xor edx, edx
add esp, 4
div esi
mov dword [esp + 0x18], 0x14
lea esi, [eax - 1]
mov ebx, edx
dec dword [esp + 0x18]
mov ebp, dword [esi*4 + 0x4602f0]
inc ebx
cmp esi, 1
jne 0x4084aa
mov eax, 0x51eb851f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x190
mov edx, ecx
sub edx, eax
jne 0x408477
mov eax, esi
jmp 0x4084a8
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
mov edx, ecx
sub edx, eax
jne 0x408495
xor eax, eax
jmp 0x4084a8
mov eax, ecx
and eax, 0x80000003
jns 0x4084a3
dec eax
or eax, 0xfffffffc
inc eax
neg eax
sbb eax, eax
inc eax
add ebp, eax
cmp ebx, ebp
jle 0x4084bc
inc esi
cmp esi, 0xc
mov ebx, 1
jl 0x4084bc
inc ecx
xor esi, esi
cmp dword [esp + 0x18], 0
jne 0x408445
imul ecx, ecx, 0x64
lea ebp, [ecx + esi + 1]
imul ebp, ebp, 0x64
lea ecx, [esp + 0xe4]
add ebp, ebx
mov dword [esp + 0x18], 0
call fcn.0043a230
mov eax, 0xd1b71759
mul edi
mov esi, edx
lea eax, [esp + 0x18]
push eax
shr esi, 0xd
push esi
push 1
mov dword [esp + 0x14c4], 1
call fcn.00435b20
push eax
lea ecx, [esp + 0xf0]
call fcn.00439f90
imul esi, esi, 0x2710
lea ecx, [esp + 0x18]
push ecx
mov edx, edi
sub edx, esi
push edx
push 2
mov dword [0x45f8c8], eax
call fcn.00435b20
push eax
lea ecx, [esp + 0xf0]
call fcn.00439f90
mov ecx, dword [0x45f8d0]
xor bl, bl
mov dword [0x45f8cc], eax
cmp ecx, edi
ja 0x408589
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
cmp edx, 0x7f3
ja 0x408589
cmp edx, 0x7e7
jb 0x408589
imul edx, edx, 0x2710
sub ecx, edx
xor edx, edx
mov eax, ecx
mov esi, 0x64
div esi
cmp edx, 0x1f
ja 0x408589
cmp eax, 0xc
ja 0x408589
test ecx, ecx
jg 0x40858b
mov bl, 1
cmp ebp, edi
jbe 0x4085cd
test bl, bl
jne 0x4085cd
cmp dword [0x463ae4], 0
je 0x4085cd
lea ecx, [esp + 0xe4]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0043a390
push 0
call fcn.0043c15d
add esp, 4
push eax
call fcn.0043bdde
add esp, 4
call fcn.00436980
jmp 0x40861f
xor eax, eax
push eax
push eax
mov dword [0x45f8c8], eax
mov dword [0x45f8cc], eax
mov eax, dword [0x461ab0]
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0043a390
jmp 0x40861f
mov ecx, dword [0x461ab0]
push edi
push edi
push 0x10
push ecx
mov dword [0x45f8c8], edi
mov dword [0x45f8cc], edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x14b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1498]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x14a8
ret