Function at 0x1004e7a1
Capabilities:
Create directory
Get file size

Disassembly:
push 0x50
mov eax, 0x1013bfe0
call fcn.101018b2
mov esi, ecx
lea edi, [esi + 0x1e0]
mov ecx, edi
call fcn.10002742
test eax, eax
je 0x1004ed93
lea eax, [ebp - 0x20]
push eax
call fcn.100de6a3
pop ecx
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.10001c5b
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.1001dab5
cmp eax, 0xffffffff
lea ecx, [ebp - 0x20]
je 0x1004ed8e
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1000e702
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.10005459
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.100015d9
push str.space_
lea ecx, [ebp - 0x20]
call fcn.1001c185
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
mov ecx, esi
call fcn.100484df
mov eax, dword [0x1019a028]
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.10002742
test eax, eax
jbe 0x1004eccd
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.10002755
mov ecx, eax
call fcn.10001a82
push eax
lea ecx, [ebp - 0x50]
call fcn.10048399
test eax, eax
jne 0x1004e8fc
mov eax, dword [0x1019a028]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
push 0xee
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.1000201d
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10002755
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x2c]
push eax
call fcn.100020c6
mov eax, dword [0x1019a028]
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0xef
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.1000201d
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.100015d9
lea ecx, [ebp - 0x2c]
call fcn.100015d9
lea ecx, [ebp - 0x1c]
jmp 0x1004eca3
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10002755
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 0x1004eca8
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 [0x1019a028]
mov dword [ebp - 0x14], eax
push 0xe4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.1000201d
cmp dword [ebp - 0x34], ebx
ja 0x1004ec45
cmp dword [ebp - 0x1c], 0xa00000
jae 0x1004ec45
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
push dword [eax]
mov ecx, esi
call fcn.1004aabe
test eax, eax
je 0x1004e9b3
cmp dword [ebp - 0x1c], 0x300000
jb 0x1004e9b3
mov eax, dword [0x1019a028]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xb
push 0xf1
jmp 0x1004ec59
cmp dword [ebp - 0x1c], 0x7d000
ja 0x1004e9f6
lea ecx, [esi + 0x1f0]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x1c]
jb 0x1004ed99
sub eax, dword [ebp - 0x1c]
push edi
push edi
push dword [ebp - 0x10]
mov dword [ecx], eax
lea ecx, [esi + 0x1e0]
call fcn.10002755
push eax
lea ecx, [esi + 0x184]
call fcn.1004e741
mov dword [ebp - 0x28], edi
jmp 0x1004eca0
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
push dword [eax]
mov ecx, esi
call fcn.1004aabe
test eax, eax
jne 0x1004e9bc
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 0x1004ea25
mov edx, eax
mov eax, 0x500
cmp edx, eax
ja 0x1004ea37
cmp dword [ebp - 0x1c], 0x100000
jb 0x1004e9bc
mov edx, ecx
test edx, edx
mov dword [ebp - 0x1c], edx
fild dword [ebp - 0x1c]
jge 0x1004ea49
fadd qword [0x10156340]
mov edx, dword [ebp - 0x48]
fild dword [ebp - 0x48]
test edx, edx
jge 0x1004ea59
fadd qword [0x10156340]
cmp dword [ebp - 0x48], eax
fdivp st(1)
jae 0x1004ea64
cmp ecx, eax
jb 0x1004ea8f
cmp ecx, dword [ebp - 0x48]
jbe 0x1004ea7c
fdivr qword [0x1015a2b0]
mov dword [ebp - 0x30], eax
call fcn.101047b6
mov dword [ebp - 0x2c], eax
jmp 0x1004ea91
fmul qword [0x1015a2b0]
mov dword [ebp - 0x2c], eax
call fcn.101047b6
mov dword [ebp - 0x30], eax
jmp 0x1004ea91
fstp st(0)
push 0x26200a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x30]
call fcn.1004845b
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.1005be6a
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.1005be95
push 0x5c
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
mov ecx, eax
call fcn.1001dab5
cmp eax, 0xffffffff
je 0x1004edb8
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
mov ecx, eax
call fcn.1001681f
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.10005459
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.100015d9
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
push dword [eax]
mov ecx, esi
call fcn.1004ab52
test eax, eax
jne 0x1004eb79
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.1001dab5
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000e702
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.10005459
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.100015d9
push 0x10159c28
lea ecx, [ebp - 0x18]
call fcn.1001c185
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000c751
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.10005459
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.100015d9
cmp dword [ebp - 0x5c], ebx
je 0x1004ebdc
push 0x50
push dword [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.1005c053
add esp, 0xc
cmp eax, ebx
je 0x1004ebdc
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 0x1004ebff
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xc
je 0x1004ebee
push dword [ebp - 0x24]
call fcn.1005bd43
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.100025db
jmp 0x1004eca0
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 0x1004edec
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.1004e741
mov dword [ebp - 0x28], edi
jmp 0x1004ebdc
mov eax, dword [0x1019a028]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
push pe_nt_image_headers32
lea ecx, [ebp - 0x30]
call fcn.1000201d
push dword [ebp - 0x10]
lea ecx, [esi + 0x1e0]
call fcn.10002755
push dword [eax]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call fcn.100020c6
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.100015d9
lea ecx, [ebp - 0x2c]
call fcn.100015d9
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100025db
inc dword [ebp - 0x10]
lea edi, [esi + 0x1e0]
mov ecx, edi
call fcn.10002742
cmp dword [ebp - 0x10], eax
jb 0x1004e858
xor edi, edi
inc edi
mov eax, dword [0x1019a028]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x1f4], ebx
mov byte [ebp - 4], 0x11
je 0x1004ed21
mov dword [ebp - 0x30], eax
push 0xe4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.1000201d
push 0xf2
lea ecx, [ebp - 0x2c]
call fcn.1000201d
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.100015d9
cmp dword [ebp - 0x28], ebx
je 0x1004ed31
lea ecx, [esi + 0x184]
call fcn.100484aa
push edi
mov ecx, esi
call fcn.100484df
lea ecx, [esi + 0x1c8]
call fcn.10047e43
test eax, eax
jne 0x1004ed6a
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.1004837d
push dword [esi + 0x1f0]
mov ecx, dword [esi + 0x180]
call fcn.1004ac99
lea ecx, [ebp - 0x2c]
call fcn.100015d9
lea ecx, [ebp - 0x18]
call fcn.100015d9
lea ecx, [ebp - 0x20]
call fcn.100015d9
call fcn.1010198a
ret
mov dword [esi + 0x1f4], edi
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100025db
jmp 0x1004ecd0
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xc
je 0x1004edca
push dword [ebp - 0x24]
call fcn.1005bd43
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.100025db
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100025db
jmp 0x1004ed83
cmp dword [ebp - 0x24], ebx
mov dword [esi + 0x1f4], edi
mov byte [ebp - 4], 0xc
je 0x1004ee04
push dword [ebp - 0x24]
call fcn.1005bd43
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.100025db
jmp 0x1004ed9f