Function at 0x1006b0d2
Capabilities:
Create directory
Get file size

Disassembly:
push 0x50
mov eax, 0x1018396f
call fcn.10145d80
mov esi, ecx
lea edi, [esi + 0x1e0]
mov ecx, edi
call fcn.10004cde
test eax, eax
je 0x1006b6c4
lea eax, [ebp - 0x20]
push eax
call fcn.1011de11
pop ecx
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100041f7
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.1002a041
cmp eax, 0xffffffff
lea ecx, [ebp - 0x20]
je 0x1006b6bf
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10011725
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.10007845
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.10003b75
push str.space_
lea ecx, [ebp - 0x20]
call fcn.1001107f
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
mov ecx, esi
call fcn.100650e3
mov eax, dword [0x101f3028]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], eax
mov ecx, edi
mov dword [esi + 0x1f4], ebx
mov dword [ebp - 0x10], ebx
call fcn.10004cde
test eax, eax
jbe 0x1006b5fe
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push ebx
push dword [ebp - 0x10]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10004cf1
mov ecx, eax
call fcn.1000401e
push eax
lea ecx, [ebp - 0x50]
call fcn.10064f9d
test eax, eax
jne 0x1006b22d
mov eax, dword [0x101f3028]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
push 0xee
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.100045b9
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10004cf1
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x2c]
push eax
call fcn.10004662
mov eax, dword [0x101f3028]
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0xef
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.100045b9
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x30]
call fcn.10003b75
lea ecx, [ebp - 0x2c]
call fcn.10003b75
lea ecx, [ebp - 0x1c]
jmp 0x1006b5d4
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10004cf1
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1006b5d9
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x101f3028]
mov dword [ebp - 0x14], eax
push 0xe4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.100045b9
cmp dword [ebp - 0x34], ebx
ja 0x1006b576
cmp dword [ebp - 0x1c], 0xa00000
jae 0x1006b576
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
push dword [eax]
mov ecx, esi
call fcn.1006740b
test eax, eax
je 0x1006b2e4
cmp dword [ebp - 0x1c], 0x300000
jb 0x1006b2e4
mov eax, dword [0x101f3028]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xb
push 0xf1
jmp 0x1006b58a
cmp dword [ebp - 0x1c], 0x7d000
ja 0x1006b327
lea ecx, [esi + 0x1f0]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x1c]
jb 0x1006b6ca
sub eax, dword [ebp - 0x1c]
push edi
push edi
push dword [ebp - 0x10]
mov dword [ecx], eax
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
push eax
lea ecx, [esi + 0x184]
call fcn.1006b072
mov dword [ebp - 0x28], edi
jmp 0x1006b5d1
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
push dword [eax]
mov ecx, esi
call fcn.1006740b
test eax, eax
jne 0x1006b2ed
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
cmp ecx, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov edx, ecx
ja 0x1006b356
mov edx, eax
mov eax, 0x500
cmp edx, eax
ja 0x1006b368
cmp dword [ebp - 0x1c], 0x100000
jb 0x1006b2ed
mov edx, ecx
test edx, edx
mov dword [ebp - 0x1c], edx
fild dword [ebp - 0x1c]
jge 0x1006b37a
fadd qword [0x101a2920]
mov edx, dword [ebp - 0x48]
fild dword [ebp - 0x48]
test edx, edx
jge 0x1006b38a
fadd qword [0x101a2920]
cmp dword [ebp - 0x48], eax
fdivp st(1)
jae 0x1006b395
cmp ecx, eax
jb 0x1006b3c0
cmp ecx, dword [ebp - 0x48]
jbe 0x1006b3ad
fdivr qword [0x101a8158]
mov dword [ebp - 0x30], eax
call fcn.10148236
mov dword [ebp - 0x2c], eax
jmp 0x1006b3c2
fmul qword [0x101a8158]
mov dword [ebp - 0x2c], eax
call fcn.10148236
mov dword [ebp - 0x30], eax
jmp 0x1006b3c2
fstp st(0)
push 0x26200a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x30]
call fcn.1006505f
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.10079410
push dword [ebp - 0x2c]
lea eax, [ebp - 0x50]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push ebx
push ebx
push eax
mov byte [ebp - 4], 0xd
call fcn.1007943b
push 0x5c
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
mov ecx, eax
call fcn.1002a041
cmp eax, 0xffffffff
je 0x1006b6e9
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
mov ecx, eax
call fcn.1001e2c3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.10007845
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.10003b75
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
push dword [eax]
mov ecx, esi
call fcn.1006749f
test eax, eax
jne 0x1006b4aa
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.1002a041
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10011725
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.10007845
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.10003b75
push 0x101a7ad8
lea ecx, [ebp - 0x18]
call fcn.1001107f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100100f8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.10007845
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.10003b75
cmp dword [ebp - 0x5c], ebx
je 0x1006b50d
push 0x50
push dword [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.100795f9
add esp, 0xc
cmp eax, ebx
je 0x1006b50d
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x1006b530
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xc
je 0x1006b51f
push dword [ebp - 0x24]
call fcn.100792e9
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.10004b77
jmp 0x1006b5d1
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x1f0]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x30]
jbe 0x1006b71d
sub eax, dword [ebp - 0x30]
push edi
mov dword [ecx], eax
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x184]
call fcn.1006b072
mov dword [ebp - 0x28], edi
jmp 0x1006b50d
mov eax, dword [0x101f3028]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
push 0xf0
lea ecx, [ebp - 0x30]
call fcn.100045b9
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10004cf1
push dword [eax]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call fcn.10004662
add esp, 0xc
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x30]
call fcn.10003b75
lea ecx, [ebp - 0x2c]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10004b77
inc dword [ebp - 0x10]
lea edi, [esi + 0x1e0]
mov ecx, edi
call fcn.10004cde
cmp dword [ebp - 0x10], eax
jb 0x1006b189
xor edi, edi
inc edi
mov eax, dword [0x101f3028]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x1f4], ebx
mov byte [ebp - 4], 0x11
je 0x1006b652
mov dword [ebp - 0x30], eax
push 0xe4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.100045b9
push 0xf2
lea ecx, [ebp - 0x2c]
call fcn.100045b9
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.10003b75
cmp dword [ebp - 0x28], ebx
je 0x1006b662
lea ecx, [esi + 0x184]
call fcn.100650ae
push edi
mov ecx, esi
call fcn.100650e3
lea ecx, [esi + 0x1c8]
call fcn.10064a33
test eax, eax
jne 0x1006b69b
push 0x15d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
lea ecx, [esi + 0xd0]
call fcn.10064f81
push dword [esi + 0x1f0]
mov ecx, dword [esi + 0x180]
call fcn.100675e6
lea ecx, [ebp - 0x2c]
call fcn.10003b75
lea ecx, [ebp - 0x18]
call fcn.10003b75
lea ecx, [ebp - 0x20]
call fcn.10003b75
call fcn.10145e58
ret
mov dword [esi + 0x1f4], edi
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10004b77
jmp 0x1006b601
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xc
je 0x1006b6fb
push dword [ebp - 0x24]
call fcn.100792e9
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.10004b77
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10004b77
jmp 0x1006b6b4
cmp dword [ebp - 0x24], ebx
mov dword [esi + 0x1f4], edi
mov byte [ebp - 4], 0xc
je 0x1006b735
push dword [ebp - 0x24]
call fcn.100792e9
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.10004b77
jmp 0x1006b6d0