Function at 0x6477d0
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x14a4
call fcn.007ce210
mov eax, dword [esp + 0x14d0]
mov ebp, dword [esp + 0x14b8]
cmp eax, 0x3a
je 0x6478b4
mov edi, ebp
mov ebx, dword [esp + 0x14bc]
cmp eax, 0x3b
jne 0x6479cf
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov dword [esp], 0x80000002
call dword [0x80f294]
sub esp, 0x14
mov esi, eax
imul eax, eax
and eax, 3
cmp eax, 3
sete al
movzx eax, al
cmp esi, eax
jne 0x647cb2
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14c0]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
call dword [0x80f294]
sub esp, 0x14
mov esi, eax
test esi, esi
je 0x647c0c
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [0x80f29c]
sub esp, 4
mov eax, esi
jmp 0x648157
lea eax, [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 8], 0x1040
mov dword [esp + 4], 0
call fcn.007ce3c0
mov dword [esp + 0x4c], 0
test ebp, ebp
mov edx, 0x57
je 0x648672
xor eax, eax
test al, al
jne 0x648672
mov eax, dword [esp + 0x14d4]
mov ebx, dword [esp + 0x14cc]
mov byte [esp + 0x30], 0x41
mov dword [eax], 0x60
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x10104
call fcn.006477d0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x647bee
mov eax, dword [esp + 0x50]
cmp eax, 3
je 0x647d42
test eax, eax
jne 0x647dcb
mov edi, 0xffffffff
jmp 0x6479c5
mov esi, 0xf
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x1010102
call fcn.006477d0
add edi, 1
jb 0x647980
jmp 0x647d73
mov ebp, dword [esp + 0x14c8]
mov dword [esp + 0x14a0], ebx
lea esi, [esp + 0x1298]
mov dword [esp], esi
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0
call fcn.007ce3c0
lea ebx, [esp + 0x1090]
mov dword [esp], ebx
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0
call fcn.007ce3c0
mov dword [ebp], 0
mov dword [esp + 4], esi
mov ebp, edi
mov dword [esp], ebp
mov dword [esp + 8], 0x208
call sub.KERNEL32.dll_QueryDosDeviceA
sub esp, 0xc
test eax, eax
je 0x647b54
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0x48
mov dword [esp + 0xc], ebp
mov dword [esp], ebx
mov dword [esp + 8], str.._s
mov dword [esp + 4], 0x208
call fcn.0064a2d0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov edi, eax
cmp edi, 0xffffffff
je 0x647bae
mov dword [esp + 0x38], edi
mov edi, esi
mov esi, 1
mov bl, 0x18
mov ebp, 0xffffffff
nop word cs:[eax + eax]
cmp esi, 1
jne 0x647cb9
movzx eax, bl
cmp eax, 0x18
jne 0x647cc4
mov esi, 7
mov bl, 0x4c
mov eax, dword [esp + 0x14c8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14c4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14c0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14a0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x170002
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
je 0x647ad0
mov byte [esp + 0x2f], al
mov esi, edi
mov edi, dword [esp + 0x38]
mov al, 0x48
jmp 0x648072
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp edi, 2
jne 0x648155
mov dword [esp + 0xc], ebp
mov dword [esp], esi
mov dword [esp + 8], str.Device_s
mov dword [esp + 4], 0x208
call fcn.0064a2d0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], 1
call sub.KERNEL32.dll_DefineDosDeviceA
sub esp, 0xc
mov dword [esp + 0x30], 1
test eax, eax
mov esi, edi
jne 0x647a4b
jmp 0x64814e
mov eax, 4
mov byte [esp + 0x2f], cl
cmp eax, 4
mov al, byte [esp + 0x34]
je 0x648072
mov ebx, edi
mov edi, esi
mov esi, 0xffffffff
jmp 0x647be0
mov ebp, 7
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esi, 1
jb 0x647bd0
mov esi, edi
mov edi, ebx
jmp 0x6480ce
mov esi, 3
mov dword [esp + 0x34], 0x57
mov dword [esp + 0x28], eax
mov byte [esp + 0x2f], al
mov byte [esp + 0x38], al
jmp 0x648162
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServiceName
call dword [0x80f298]
sub esp, 0x18
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x647c6a
mov eax, dword [esp + 0x40]
cmp eax, 1
jne 0x647c6a
imul eax, eax
and eax, 3
cmp eax, 2
jne 0x647c7e
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], str.Unknown
call fcn.007cd670
mov al, 0x13
movzx eax, al
cmp eax, 0x13
je 0x647c90
cmp eax, 0x77
je 0x647c90
cmp eax, 0x7d
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [0x80f29c]
sub esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [0x80f29c]
sub esp, 4
xor esi, esi
mov eax, esi
jmp 0x648157
mov esi, edi
mov edi, dword [esp + 0x38]
jmp 0x647ef7
cmp eax, 0x4c
je 0x647df2
cmp eax, 0x5b
jne 0x647e61
mov eax, dword [esp + 0x14c8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14c4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14c0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14a0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x170002
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
mov byte [esp + 0x2f], al
mov esi, edi
mov edi, dword [esp + 0x38]
mov al, 0x48
jne 0x648072
jmp 0x647ef7
mov al, 0x35
mov esi, 9
movzx eax, al
cmp eax, 0x28
jne 0x647d73
mov eax, 0xf
mov dword [esp + 0x34], 0x57
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2f], cl
mov byte [esp + 0x38], cl
mov byte [esp + 0x24], cl
jmp 0x6482b0
cmp esi, 9
jne 0x647de4
mov esi, 0xd
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x4010102
call fcn.006477d0
mov edx, 0x57
mov byte [esp + 0x2f], cl
jmp 0x6485e9
mov dword [esp + 0x34], 0x57
mov dword [esp + 0x28], eax
mov byte [esp + 0x2f], al
mov byte [esp + 0x38], al
jmp 0x64817b
mov edx, 0x57
mov byte [esp + 0x2f], cl
jmp 0x648375
mov ebx, 0xa
mov eax, dword [esp + 0x14c8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14c4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14c0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14a0]
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x170002
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
mov byte [esp + 0x2f], al
mov esi, edi
mov edi, ebp
mov al, 0x48
jne 0x648072
jmp 0x648092
mov esi, 0xc
mov eax, dword [esp + 0x14c8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14c4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14c0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14a0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x170002
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
je 0x647f6c
mov ebp, 0x19
mov byte [esp + 0x2f], al
mov esi, edi
mov edi, dword [esp + 0x38]
jmp 0x648065
mov ebx, 0x12
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
call sub.KERNEL32.dll_GetLastError
mov esi, eax
add ebp, 1
jb 0x647ee0
jmp 0x6480a1
mov dword [esp + 0x38], edi
mov edi, esi
mov byte [esp + 0x34], 0x1c
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x14b8]
je 0x647fc0
lea eax, [esp + 0x1298]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], 7
call sub.KERNEL32.dll_DefineDosDeviceA
sub esp, 0xc
test eax, eax
jne 0x647fc0
mov al, 0x64
mov esi, 0x18
movzx eax, al
cmp eax, 0x64
je 0x647f6c
cmp eax, 0x71
jne 0x647fa0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x64814e
mov ebp, 0xffffffff
cmp esi, 0xc
jne 0x647f96
mov edi, dword [esp + 0x38]
jmp 0x647ef7
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
add ebp, 1
jb 0x647f80
jmp 0x648155
mov ebx, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x648114
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x647ff8
mov byte [esp + 0x2f], 0x6d
mov edx, eax
mov al, 0xa
mov ebx, 0xffffffff
movsx ecx, al
cmp ecx, 0x3a
jg 0x648002
movzx eax, al
cmp eax, 0xa
mov esi, edi
je 0x648045
cmp eax, 0x26
mov edi, edx
jne 0x64803b
mov dword [esp], edi
jmp 0x648122
mov byte [esp + 0x2f], 0x6d
jmp 0x64812a
movzx ecx, al
cmp ecx, 0x3b
mov esi, edi
je 0x64811f
mov eax, 0xa
cmp ecx, 0x53
mov edi, edx
jne 0x64803b
mov cl, 0x6d
jmp 0x647bb3
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add ebx, 1
jb 0x648030
jmp 0x64812a
mov edi, edx
jmp 0x648060
mov ebp, 0xa
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add ebx, 1
jb 0x648050
cmp ebp, 0xa
mov al, byte [esp + 0x34]
je 0x64812a
mov ebx, 0xf
movzx eax, al
cmp eax, 8
je 0x6480a1
mov ebp, 9
cmp eax, 0x1c
je 0x6480ce
cmp eax, 0x2b
je 0x647f01
cmp ebx, 0xa
jne 0x6480e3
mov ebp, 0xffffffff
jmp 0x647ef7
mov dword [esp + 0x38], edi
mov edi, esi
cmp ebx, 0xf
jne 0x648155
mov eax, 0x10
mov byte [esp + 0x34], 0x48
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x14b8]
jne 0x647f1e
jmp 0x648106
cmp ebp, 7
je 0x64812a
mov dword [esp + 0x38], edi
mov edi, esi
mov byte [esp + 0x34], 0x2b
jmp 0x647f0c
mov dword [esp + 0x38], edi
mov edi, esi
mov eax, 0x1b
mov ebx, 3
mov byte [esp + 0x34], 8
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x14b8]
je 0x648114
cmp eax, 0x10
jne 0x647f1e
jmp 0x647fc0
cmp ebx, 3
je 0x647fc0
jmp 0x648155
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
movzx eax, byte [esp + 0x2f]
cmp eax, 0x39
jne 0x64814e
mov esi, 0xffffffff
jmp 0x648147
call sub.KERNEL32.dll_GetLastError
mov edi, eax
add esi, 1
jb 0x648140
jmp 0x648155
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov eax, edi
add esp, 0x14a4
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, 3
jne 0x64848c
mov eax, esi
or eax, 2
xor esi, 2
add esi, eax
je 0x64848c
mov esi, 0x10
movzx eax, byte [esp + 0x30]
cmp eax, 0x50
jne 0x6481e1
mov esi, 7
mov byte [esp + 0x30], 0x50
mov byte [esp + 0x23], 0x19
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x10107
call fcn.006477d0
mov cl, 1
test eax, eax
jne 0x648162
jmp 0x64824d
cmp esi, 0x10
jne 0x64835f
imul esi, esi
and esi, 3
cmp esi, 2
jae 0x64836a
mov byte [esp + 0x30], 0x41
mov byte [esp + 0x23], 0x19
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x10107
call fcn.006477d0
mov cl, 1
test eax, eax
jne 0x64848c
mov byte [esp + 0x24], cl
mov eax, 0x19
movzx ecx, byte [esp + 0x23]
cmp ecx, 7
je 0x6482b0
cmp ecx, 0x19
jne 0x648334
xor esi, esi
lea edi, [ebx + 0xc]
jmp 0x6482a3
mov eax, esi
or eax, 2
mov ecx, esi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
add esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.007c51d0
imul eax, dword [ebx + 0xc], 0x64
mov dword [ebx + 0xc], eax
test esi, esi
je 0x648270
mov cl, byte [esp + 0x24]
jmp 0x64848c
cmp eax, 0xf
jne 0x648308
mov ecx, eax
and ecx, 1
xor ecx, eax
not ecx
test ecx, ecx
je 0x648308
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1040
mov dword [esp + 4], 0x4010102
call fcn.006477d0
mov edx, dword [esp + 0x34]
jmp 0x648375
mov esi, 7
mov eax, dword [esp + 0x4c]
lea ecx, [ebx + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.007c51d0
imul eax, dword [ebx + 0xc], 0x64
mov dword [ebx + 0xc], eax
jmp 0x648477
mov eax, dword [esp + 0x4c]
lea ecx, [ebx + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.007c51d0
imul eax, dword [ebx + 0xc], 0x64
mov dword [ebx + 0xc], eax
mov cl, byte [esp + 0x24]
jmp 0x64848c
mov edx, dword [esp + 0x34]
mov eax, edx
jmp 0x648157
mov edx, dword [esp + 0x34]
mov eax, edx
jmp 0x648157
mov byte [esp + 0x38], 0x3c
test eax, eax
jne 0x6483a1
mov dword [esp + 0x34], edx
mov edx, 0x15
mov dword [esp + 0x28], eax
mov ecx, eax
and ecx, 1
xor ecx, eax
not ecx
test ecx, ecx
jne 0x648507
jmp 0x64817b
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
jmp 0x64817b
mov esi, 0xa
mov byte [esp + 0x38], 0x44
mov eax, edi
imul eax, eax
and eax, 3
cmp eax, 2
adc edi, 0
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.007c51d0
mov eax, edi
not eax
and eax, 1
add eax, edi
setne al
movzx eax, al
cmp edi, eax
jb 0x6483b0
mov ebp, dword [esp + 0x14b8]
cmp esi, 0xa
je 0x64817b
mov esi, 0xb
mov byte [esp + 0x2f], 0x4c
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0x1010d
call fcn.006477d0
mov edx, eax
test edx, edx
jne 0x64864e
mov eax, 3
sub eax, edx
xor eax, edx
je 0x64864e
mov dword [esp + 0x34], edx
mov esi, 0x14
mov byte [esp + 0x24], 1
cmp esi, 7
je 0x648488
xor eax, eax
test al, al
mov cl, byte [esp + 0x24]
je 0x6484f3
jmp 0x64848c
mov cl, byte [esp + 0x24]
mov esi, 0x13
movzx eax, cl
cmp eax, 1
jne 0x6483fd
mov esi, 0x1c
mov byte [esp + 0x2f], 0x4c
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x39
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0x1010d
call fcn.006477d0
mov dword [esp + 0x34], eax
test eax, eax
jne 0x6481e1
mov esi, 0xa
mov edx, 6
movzx ecx, byte [esp + 0x2f]
cmp ecx, 0x4c
je 0x648581
cmp edx, 6
jne 0x6485f4
xor ebp, ebp
lea edi, [ebx + 0x5c]
mov edx, dword [esp + 0x34]
jmp 0x648560
mov esi, 2
inc ebp
mov eax, dword [esp + 0x4c]
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
setne cl
movzx ecx, cl
add ecx, eax
mov dword [ebx + 0x58], ecx
mov dword [esp + 8], ecx
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.007c51d0
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x14d4]
add dword [ecx], eax
xor edx, edx
mov eax, ebp
or eax, 2
mov ecx, ebp
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
cmp ebp, eax
jb 0x648520
mov dword [esp + 0x34], edx
mov ebp, dword [esp + 0x14b8]
cmp esi, 2
je 0x648679
imul esi, esi
and esi, 3
cmp esi, 3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
je 0x648672
mov esi, 8
mov byte [esp + 0x2f], 0x4c
mov eax, dword [esp + 0x4c]
mov edi, ecx
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
adc eax, 0
mov dword [ebx + 0x58], eax
lea ecx, [ebx + 0x5c]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.007c51d0
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x14d4]
add dword [ecx], eax
mov eax, edi
xor edx, edx
cmp esi, 8
jne 0x648375
jmp 0x648672
mov esi, 6
movzx eax, byte [esp + 0x38]
cmp eax, 0x44
jne 0x64864a
xor esi, esi
lea edi, [ebx + 0x14]
jmp 0x648631
mov byte [esp + 0x38], 0x3c
inc esi
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.007c51d0
mov eax, esi
imul eax, eax
and eax, 3
cmp eax, 2
sbb eax, eax
and eax, 1
cmp esi, eax
jb 0x648610
jmp 0x64817b
mov edx, dword [esp + 0x34]
cmp esi, 6
jne 0x648672
mov eax, esi
and eax, 1
xor eax, esi
not eax
test eax, eax
je 0x648672
mov dword [esp + 0x34], edx
xor edi, edi
lea ebp, [ebx + 0x14]
mov byte [esp + 0x38], al
jmp 0x6483e3
mov eax, edx
jmp 0x648157
mov edx, dword [esp + 0x34]
mov eax, edx
jmp 0x648157