Function at 0x407f20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x450f09
mov eax, dword fs:[0]
push eax
mov eax, 0x149c
call fcn.004478a0
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x1498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d1ac]
xor eax, esp
push eax
lea eax, [esp + 0x14b0]
mov dword fs:[0], eax
push 0x1894
mov ebx, ecx
call fcn.0043aeee
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.0043a0a0
jmp 0x407f96
xor esi, esi
mov dword [esp + 0x14b8], 0xffffffff
mov dword [0x460030], esi
call fcn.00433640
push 0x668
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x407fc6
mov esi, eax
call fcn.00421e90
jmp 0x407fc8
xor eax, eax
mov dword [0x46001c], eax
call fcn.00422a40
push 0x354
call fcn.0043aeee
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 [0x45fff8], eax
call fcn.0041f490
mov eax, dword [0x460010]
push 1
push eax
call fcn.004364a0
mov ecx, dword [0x460010]
push 2
push ecx
call fcn.004364a0
mov edx, dword [0x460010]
push 3
push edx
call fcn.004364a0
mov eax, dword [0x460010]
push 4
push eax
call fcn.004364a0
push 0xc9c
call fcn.0043aeee
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 [0x460020], esi
call fcn.0040df60
push 0x62298
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x4080be
mov esi, eax
call fcn.0041c7b0
jmp 0x4080c0
xor eax, eax
mov dword [0x460008], eax
call fcn.0041cda0
push 0x480
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x4080e4
mov esi, eax
call fcn.00419bc0
jmp 0x4080e6
xor eax, eax
mov dword [0x460024], eax
call fcn.00419e40
push 0x344
call fcn.0043aeee
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 [0x460014], eax
call fcn.00429300
push 0x500
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x40814c
mov esi, eax
call fcn.0041f840
jmp 0x40814e
xor eax, eax
mov dword [0x460038], eax
call fcn.0041fdd0
push 0x508
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x408170
call fcn.00431b10
jmp 0x408172
xor eax, eax
mov dword [0x460034], eax
call fcn.00431ee0
push 0x47c
call fcn.0043aeee
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4081a1
call fcn.00401c40
mov dword [esi], vtable.cShootSaliva.0
call fcn.00414b60
jmp 0x4081a3
xor esi, esi
mov dword [0x46000c], esi
call fcn.00414b60
push 0x400
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x4081c8
mov esi, eax
call fcn.0040a410
jmp 0x4081ca
xor eax, eax
mov dword [0x460028], eax
call fcn.0040ad40
push 0x9c0
call fcn.0043aeee
add esp, 4
cmp eax, ebp
je 0x4081ee
mov esi, eax
call fcn.004295c0
jmp 0x4081f0
xor eax, eax
mov dword [0x46002c], eax
call fcn.0042a9c0
push 0x457514
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.0043c620
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.0043b6e4
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.00440c70
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.004359e0
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.004359e0
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 [0x460cdf], 1
mov edx, dword [0x460000]
mov eax, dword [edx + 0x378]
push eax
call fcn.00433e90
cmp dword [0x45e8d0], edi
je 0x408602
mov eax, dword [0x46278c]
push eax
call fcn.0043bf4b
mov eax, dword [0x46278c]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
imul ecx, ecx, 0x64
mov esi, dword [0x45e8d0]
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 + 0x45f2f0]
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.0043a0a0
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.00435990
push eax
lea ecx, [esp + 0xf0]
call fcn.00439e00
imul esi, esi, 0x2710
lea ecx, [esp + 0x18]
push ecx
mov edx, edi
sub edx, esi
push edx
push 2
mov dword [0x45e8c8], eax
call fcn.00435990
push eax
lea ecx, [esp + 0xf0]
call fcn.00439e00
mov ecx, dword [0x45e8d0]
xor bl, bl
mov dword [0x45e8cc], 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 [0x462ae4], 0
je 0x4085cd
lea ecx, [esp + 0xe4]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0043a200
push 0
call fcn.0043bfcd
add esp, 4
push eax
call fcn.0043bc4e
add esp, 4
call fcn.004367f0
jmp 0x40861f
xor eax, eax
push eax
push eax
mov dword [0x45e8c8], eax
mov dword [0x45e8cc], eax
mov eax, dword [0x460ab0]
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0043a200
jmp 0x40861f
mov ecx, dword [0x460ab0]
push edi
push edi
push 0x10
push ecx
mov dword [0x45e8c8], edi
mov dword [0x45e8cc], 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.0043a652
add esp, 0x14a8
ret