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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a06be
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x294], esi
call fcn.00469bc0
add esp, 4
test al, al
je 0x472248
mov eax, 0x1126
jmp 0x47299c
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x298]
cmp ecx, eax
je 0x472291
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x472282
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00409db0
lea eax, [ebp - 0x28d]
mov byte [ebp - 0x28d], 0
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0042f380
add esp, 8
test al, al
je 0x4724a8
cmp byte [ebp - 0x28d], 0
mov eax, dword [ebp - 0x23c]
mov byte [eax], 0
je 0x4724a1
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
push 0x5c45d0
push 4
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0042ef80
test eax, eax
lea eax, [ebp - 0x234]
jne 0x4723b1
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x278]
push ecx
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.004aadb0
add esp, 8
test al, al
je 0x47247f
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x47235a
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00409db0
call fcn.004a82d0
mov ecx, dword [ebp - 0x268]
test al, al
je 0x472387
cmp ecx, 0x10a
jb 0x472387
push edi
mov ecx, esi
call fcn.0042f8d0
mov eax, dword [ebp - 0x23c]
mov byte [eax], 0
jmp 0x47247f
lea eax, [ebp - 0x278]
cmp esi, eax
je 0x472476
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
mov ecx, esi
push eax
call fcn.00409db0
jmp 0x472476
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042f030
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4723cd
mov eax, dword [eax]
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.004aadb0
add esp, 8
mov byte [ebp - 0x28e], al
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.0040a580
cmp byte [ebp - 0x28e], 0
je 0x47247f
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x472425
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00409db0
call fcn.004a82d0
test al, al
je 0x47244d
cmp dword [ebp - 0x268], 0x10a
jb 0x47244d
push edi
mov ecx, esi
call fcn.0042f8d0
mov eax, dword [ebp - 0x23c]
mov byte [eax], 0
jmp 0x47247f
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00469460
add esp, 8
mov ecx, esi
push eax
call fcn.00410e40
lea ecx, [ebp - 0x260]
call fcn.0040a580
mov eax, dword [ebp - 0x23c]
mov byte [eax], 1
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4724a1
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.0040a5e0
xor esi, esi
jmp 0x472973
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x298]
push eax
call fcn.004731d0
mov edx, dword [ebp - 0x224]
add esp, 8
mov ecx, dword [ebp - 0x220]
cmp edx, 3
jb 0x47252c
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
cmp word [eax + 2], 0x3a
jne 0x47252c
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
cmp word [eax + 4], 0x5c
jne 0x47252c
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
movzx eax, word [eax]
cmp eax, 0x41
jb 0x47251a
cmp eax, 0x5a
jbe 0x472523
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x47252c
mov byte [ebp - 0x28d], 1
jmp 0x472533
mov byte [ebp - 0x28d], 0
cmp edx, 8
jb 0x472623
cmp ecx, 8
lea eax, [ebp - 0x234]
push 8
cmovae eax, dword [ebp - 0x234]
push 0x5c45dc
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
jne 0x472623
push 0xffffffffffffffff
push 8
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x234]
call fcn.00410b80
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x27c], eax
cmp ecx, eax
je 0x4725f5
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 5
cmp ecx, 8
jb 0x4725b4
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a5e0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x224], 0
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], cx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x472617
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a5e0
xor eax, eax
mov word [ebp - 0x260], ax
mov byte [ebp - 4], al
cmp byte [ebp - 0x28d], 0
mov byte [ebp - 0x28e], 0
jne 0x472729
push 0x5c46d4
lea ecx, [ebp - 0x260]
call fcn.004102c0
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push dword [ebp - 0x224]
cmovae ecx, dword [ebp - 0x234]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040f730
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
movups xmmword [ebp - 0x270], xmm0
mov dword [eax + 0x10], 0
movq qword [ebp - 0x280], xmm1
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x4726c8
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040a5e0
movups xmm0, xmmword [ebp - 0x270]
movq xmm1, qword [ebp - 0x280]
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x268], 0
movq qword [ebp - 0x224], xmm1
mov dword [ebp - 0x264], 7
xor eax, eax
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x472716
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a5e0
xor eax, eax
mov byte [ebp - 0x28e], 1
mov word [ebp - 0x260], ax
mov byte [ebp - 4], al
or ecx, 0xffffffff
xor al, al
mov byte [ebp - 0x295], al
mov byte [ebp - 0x28d], al
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x238], ecx
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x224]
cmp eax, ecx
mov dword [ebp - 0x238], eax
cmovb ecx, eax
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push ecx
cmovae eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x260]
push eax
mov dword [ebp - 0x24c], 7
call fcn.00409db0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4727dd
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xb
cmp edx, 0x1000
jb 0x4727cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4731b8
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov byte [ebp - 4], 0
movups xmm1, xmmword [ebp - 0x260]
lea ecx, [ebp - 0x234]
xor eax, eax
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x224], xmm0
mov edx, dword [ebp - 0x220]
cmp edx, 8
mov word [ebp - 0x260], ax
movd eax, xmm1
movups xmmword [ebp - 0x234], xmm1
mov dword [ebp - 0x250], 0
cmovae ecx, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x2a0], ecx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
test ecx, ecx
je 0x47286d
mov eax, dword [ebp - 0x2a0]
nop word [eax + eax]
cmp word [eax], 0x5c
je 0x472860
add eax, 2
sub ecx, 1
jne 0x472850
jmp 0x47286d
sub eax, dword [ebp - 0x2a0]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4728c1
cmp edx, 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x4728b3
cmp eax, 1
je 0x4728b3
cmp byte [ebp - 0x28d], 0
jne 0x47296e
push 1
push 0x5c0584
lea ecx, [ebp - 0x234]
call fcn.0040f730
mov byte [ebp - 0x28d], 1
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
jmp 0x4728c7
mov ecx, dword [ebp - 0x238]
cmp edx, 8
lea eax, [ebp - 0x234]
cmovae eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4729b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x472b3c
cmp esi, 3
je 0x472b3c
cmp esi, 0x7b
je 0x472b3c
cmp esi, 0xa1
je 0x472b3c
cmp byte [ebp - 0x295], 0
je 0x472973
cmp byte [ebp - 0x28e], 0
je 0x472973
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x224]
cmovae ecx, dword [ebp - 0x234]
test eax, eax
je 0x472973
dec eax
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp word [ecx + edx*2], 0x5c
lea eax, [ecx + edx*2]
je 0x472965
cmp eax, ecx
je 0x472973
sub eax, 2
cmp word [eax], 0x5c
jne 0x472958
sub eax, ecx
sar eax, 1
cmp eax, 3
jne 0x472973
mov esi, 0x1126
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0x2a
cmp eax, 8
jb 0x47299a
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a5e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x472b42
test edi, edi
je 0x4731a8
test esi, esi
je 0x4731a8
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4729e3
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x4729f5
mov eax, dword [esi]
xor ecx, ecx
push ecx
push 0x2200000
push 3
mov word [eax], cx
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push ecx
cmovae eax, dword [ebp - 0x234]
push 7
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
je 0x47319e
xorps xmm0, xmm0
mov dword [ebp - 0x284], 0
movq qword [ebp - 0x28c], xmm0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
push 0x428b
lfence
call fcn.00406b5e
add esp, 4
test eax, eax
je 0x4731b8
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x4268
push 0
push edi
lea esi, [edi + 0x4268]
mov dword [ebp - 0x2a0], edi
mov dword [edi - 4], eax
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x284], esi
call fcn.0056aed0
add esp, 0xc
mov dword [ebp - 0x288], esi
push 0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 0xf
push eax
push 0x4268
push edi
push 0
push 0
push 0x900a8
push dword [ebp - 0x238]
mov dword [ebp - 0x27c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x238]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x472d97
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x472d97
cmp eax, 0x4268
ja 0x472d97
mov eax, dword [edi]
cmp eax, 0x80000013
je 0x472b27
cmp eax, 0x80000007
jne 0x472bb4
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
call fcn.00414fa0
mov edi, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x294]
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0x224]
cmovae edx, dword [ebp - 0x234]
mov byte [ebp - 0x295], 1
mov dword [ebp - 0x238], 0xffffffff
test eax, eax
je 0x472ba3
dec eax
or ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x238], eax
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x472b9d
nop word [eax + eax]
cmp ecx, edx
je 0x472ba3
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x472b90
sub ecx, edx
sar ecx, 1
jmp 0x472ba6
or ecx, 0xffffffff
cmp ecx, 2
ja 0x472740
jmp 0x47296e
mov eax, dword [ebp - 0x23c]
mov byte [eax], 1
mov eax, dword [edi]
cmp eax, 0xa0000003
jne 0x472e8d
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0056aed0
push 0x5c0584
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042e0c0
add esp, 0x18
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x11
jb 0x472c04
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xf
mov esi, eax
call fcn.0040a580
test esi, esi
je 0x472dbc
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
mov eax, 0x104
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x248]
call fcn.004b0b80
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x472cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x472d5a
mov eax, dword [ebp - 0x23c]
jmp 0x472c72
cmp word [edi], 0
mov esi, dword [ebp - 0x294]
je 0x472d23
cmp dword [esi + 0x10], 0
jne 0x472d1d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472d54
test eax, 0x400
jne 0x472cfe
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472ce6
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00409db0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472d03
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x472cc8
mov edi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x240]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
mov byte [ebp - 4], 0x17
cmp ecx, 0x1000
jb 0x472dac
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4731b8
jmp 0x472dac
mov edi, dword [ebp - 0x248]
test edi, edi
je 0x472d97
mov eax, dword [ebp - 0x240]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
mov byte [ebp - 4], 0x15
cmp ecx, 0x1000
jb 0x472d8d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4731b8
push ecx
push edi
call fcn.0040a1a2
add esp, 8
mov esi, 3
lea ecx, [ebp - 0x28c]
call fcn.00414fa0
jmp 0x472973
push ecx
push edi
call fcn.0040a1a2
add esp, 8
mov byte [ebp - 4], 0xf
jmp 0x472dcd
mov esi, dword [ebp - 0x294]
lea eax, [edi + 0x10]
push eax
mov ecx, esi
call fcn.0040bef0
mov edi, dword [ebp - 0x29c]
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x472df9
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00409db0
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x238], eax
je 0x472e7b
push 0x5c45d0
push 4
push 0
mov ecx, esi
call fcn.0042ef80
test eax, eax
jne 0x472e41
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00410b80
push eax
mov ecx, esi
call fcn.00410e40
lea ecx, [ebp - 0x260]
call fcn.0040a580
mov eax, dword [edi + 0x10]
test eax, eax
je 0x472e7b
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x472e52
mov ecx, dword [edi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x472e7b
cmp dword [esi + 0x14], 8
jb 0x472e62
mov esi, dword [esi]
mov eax, dword [ebp - 0x238]
mov eax, dword [eax]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x472e7b
push 0x5c
mov ecx, edi
call fcn.0040ef60
lea ecx, [ebp - 0x28c]
xor esi, esi
call fcn.00414fa0
jmp 0x472973
cmp eax, 0xa000000c
jne 0x472d97
test byte [edi + 0x10], 1
je 0x473132
mov eax, dword [ebp - 0x224]
xorps xmm0, xmm0
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
push 0x208
lfence
call fcn.00406b5e
mov edi, eax
mov ecx, 0x82
xor eax, eax
mov dword [ebp - 0x248], edi
add esp, 4
lea edx, [edi + 0x208]
mov dword [ebp - 0x240], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x244], edx
mov edi, dword [ebp - 0x238]
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x264], eax
xorps xmm0, xmm0
mov eax, 0x30
mov byte [ebp - 4], 0x1a
mov word [ebp - 0x296], ax
lea eax, [ebp - 0x28e]
push eax
lea eax, [ebp - 0x296]
movq qword [ebp - 0x26c], xmm0
push eax
lea esi, [edi + 1]
push esi
call fcn.0040be60
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x1b
cmovae eax, dword [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x26c]
call fcn.004067bb
add esp, 0xc
test eax, eax
jne 0x4730cb
test edi, edi
je 0x472fb5
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
cmp word [eax + edi*2 - 2], 0x5c
jne 0x472fb5
mov eax, dword [ebp - 0x26c]
xor ecx, ecx
mov word [eax + edi*2 - 2], cx
push dword [ebp - 0x26c]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4730cb
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov ecx, dword [ebp - 0x2a0]
mov byte [ebp - 4], 0x20
movzx eax, word [ecx + 0xa]
shr eax, 1
push eax
movzx eax, word [ecx + 8]
add ecx, 0x14
shr eax, 1
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x260]
call fcn.00409db0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
push dword [ebp - 0x248]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x47303f
lea esi, [eax + 3]
jmp 0x47308a
mov edi, dword [ebp - 0x29c]
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x47306b
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00409db0
push dword [ebp - 0x248]
mov esi, dword [ebp - 0x294]
mov ecx, esi
call fcn.00440227
push esi
push edi
call fcn.004a9b50
add esp, 8
xor esi, esi
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x24
cmp eax, 8
jb 0x4730ac
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
jmp 0x4730d0
mov esi, 3
lea ecx, [ebp - 0x26c]
call fcn.0040bf20
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x472d9c
mov eax, dword [ebp - 0x240]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
mov byte [ebp - 4], 0x25
cmp edx, 0x1000
jb 0x473118
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4731bd
push edx
push ecx
call fcn.0040a1a2
add esp, 8
lea ecx, [ebp - 0x28c]
call fcn.00414fa0
jmp 0x472973
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x47315c
cmp dword [ebp - 0x220], 8
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00409db0
movzx eax, word [edi + 0xa]
mov esi, dword [ebp - 0x294]
mov ecx, esi
shr eax, 1
push eax
movzx eax, word [edi + 8]
shr eax, 1
add eax, 0xa
lea eax, [edi + eax*2]
push eax
call fcn.00409db0
push esi
push dword [ebp - 0x29c]
call fcn.004a9b50
add esp, 8
lea ecx, [ebp - 0x28c]
xor esi, esi
call fcn.00414fa0
jmp 0x472973
mov esi, 3
jmp 0x472973
mov eax, dword [ebp - 0x23c]
xor esi, esi
mov byte [eax], 1
jmp 0x472973
call fcn.0056e2db
call fcn.0056e2db
int3