Function at 0x40730c
Capabilities:
Copy file
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd0
mov eax, 0x48e128
push ebx
push esi
push edi
call fcn.004696b8
mov dword [ebp - 0x210], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00474b80
inc dword [ebp - 0x210]
lea edx, [ebp + 8]
mov word [ebp - 0x21c], 8
lea eax, [ebp + 8]
call fcn.00474b80
inc dword [ebp - 0x210]
xor edx, edx
mov word [ebp - 0x21c], 0x14
mov dword [ebp - 0x14c], edx
lea ecx, [ebp - 0x330]
inc dword [ebp - 0x210]
inc dword [ebp - 0x210]
mov word [ebp - 0x21c], 8
push ecx
push 0x100
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov word [ebp - 0x21c], 0x20
xor eax, eax
lea edx, [ebp - 0x15c]
mov dword [ebp - 0x15c], eax
push edx
inc dword [ebp - 0x210]
lea eax, [ebp + 8]
call fcn.00474e58
mov edx, eax
lea eax, [ebp + 8]
mov ecx, 1
call fcn.00474f88
lea edx, [ebp - 0x15c]
push edx
mov edx, 0x48b929
lea eax, [ebp - 0x160]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x160]
pop eax
call fcn.00474e40
push eax
dec dword [ebp - 0x210]
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x407499
mov word [ebp - 0x21c], 0x2c
mov edx, 0x48b92b
lea eax, [ebp - 0x164]
call fcn.00474b48
inc dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x168], eax
lea eax, [ebp + 8]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0x168]
call fcn.00474d9c
lea edx, [ebp - 0x168]
lea eax, [ebp + 8]
call fcn.00474d74
dec dword [ebp - 0x210]
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x164]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 0x38
xor ecx, ecx
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], ecx
push eax
inc dword [ebp - 0x210]
lea eax, [ebp + 0xc]
call fcn.00474e58
mov edx, eax
lea eax, [ebp + 0xc]
mov ecx, 1
call fcn.00474f88
lea edx, [ebp - 0x16c]
push edx
mov edx, 0x48b92d
lea eax, [ebp - 0x170]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x170]
pop eax
call fcn.00474e40
push eax
dec dword [ebp - 0x210]
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x16c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x4075a4
mov word [ebp - 0x21c], 0x44
mov edx, 0x48b92f
lea eax, [ebp - 0x174]
call fcn.00474b48
inc dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x178], eax
lea eax, [ebp + 0xc]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x174]
lea ecx, [ebp - 0x178]
call fcn.00474d9c
lea edx, [ebp - 0x178]
lea eax, [ebp + 0xc]
call fcn.00474d74
dec dword [ebp - 0x210]
lea eax, [ebp - 0x178]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x174]
mov edx, 2
call fcn.00474d44
mov dl, 1
mov eax, dword [0x455850]
call fcn.00419be8
mov esi, eax
mov dl, 1
mov eax, dword [0x455850]
call fcn.00419be8
mov dword [ebp - 0x230], eax
push 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4075d2
mov eax, dword [ebp + 0xc]
jmp 0x4075d7
mov eax, 0x48b931
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
mov word [ebp - 0x21c], 0x50
mov edx, 0x48b932
lea eax, [ebp - 0x17c]
call fcn.00474b48
inc dword [ebp - 0x210]
xor ecx, ecx
mov dword [ebp - 0x180], ecx
lea ecx, [ebp - 0x180]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x17c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea eax, [ebp - 0x180]
mov eax, dword [eax]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0045f930
test eax, eax
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x180]
dec dword [ebp - 0x210]
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x40801c
mov word [ebp - 0x21c], 0x5c
mov edx, 0x48b936
lea eax, [ebp - 0x184]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
je 0x4076f3
mov edx, 0x48b938
lea eax, [ebp - 0x188]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x188]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x210]
call fcn.00474d44
pop ecx
test ecx, ecx
jne 0x4076f7
xor eax, eax
jmp 0x4076fc
mov eax, 1
push eax
dec dword [ebp - 0x210]
lea eax, [ebp - 0x184]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x408009
mov word [ebp - 0x21c], 0x74
xor eax, eax
mov dword [ebp - 0x18c], eax
lea ecx, [ebp - 0x18c]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov edx, dword [ebp - 0x18c]
test edx, edx
je 0x407759
mov ecx, dword [ebp - 0x18c]
jmp 0x40775e
mov ecx, 0x48b93b
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x18c]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x210]
call fcn.00474d44
mov word [ebp - 0x21c], 0x68
test bl, bl
jne 0x40779e
mov ecx, dword [ebp - 0x150]
cmp ecx, 0x10
jne 0x40790a
mov word [ebp - 0x21c], 0x80
xor eax, eax
mov dword [ebp - 0x190], eax
lea ecx, [ebp - 0x190]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea eax, [ebp - 0x190]
mov edx, 0x48a694
call fcn.00474e40
test al, al
lea eax, [ebp - 0x190]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x210]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x40790a
push 0
xor eax, eax
mov word [ebp - 0x21c], 0x8c
mov dword [ebp - 0x194], eax
lea eax, [ebp + 0xc]
inc dword [ebp - 0x210]
lea ecx, [ebp - 0x194]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
mov edx, dword [ebp - 0x194]
test edx, edx
je 0x407840
mov ecx, dword [ebp - 0x194]
jmp 0x407845
mov ecx, 0x48b93c
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
dec dword [ebp - 0x210]
lea eax, [ebp - 0x194]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 0x98
xor eax, eax
mov dword [ebp - 0x198], eax
lea ecx, [ebp - 0x198]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x198]
mov eax, esi
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 0xa4
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0x19c]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 0xc]
call fcn.00474d9c
lea edx, [ebp - 0x19c]
mov eax, dword [ebp - 0x230]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00474d44
jmp 0x407b33
push 0
xor ecx, ecx
mov word [ebp - 0x21c], 0xb0
mov dword [ebp - 0x1a0], ecx
lea ecx, [ebp - 0x1a0]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 0xc]
call fcn.00474d9c
mov eax, dword [ebp - 0x1a0]
test eax, eax
je 0x407949
mov edx, dword [ebp - 0x1a0]
jmp 0x40794e
mov edx, 0x48b93e
push edx
xor eax, eax
mov dword [ebp - 0x1a4], eax
lea ecx, [ebp - 0x1a4]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov ecx, dword [ebp - 0x1a4]
test ecx, ecx
je 0x407983
mov eax, dword [ebp - 0x1a4]
jmp 0x407988
mov eax, 0x48b93d
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
lea eax, [ebp - 0x1a4]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x210]
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1a0]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x407b33
mov word [ebp - 0x21c], 0xbc
xor eax, eax
mov dword [ebp - 0x1a8], eax
lea ecx, [ebp - 0x1a8]
inc dword [ebp - 0x210]
lea edx, [ebp + 8]
mov eax, 0x48b93f
call fcn.00475018
lea eax, [ebp - 0x1a8]
xor edx, edx
mov dword [ebp - 0x1ac], edx
lea ecx, [ebp - 0x1ac]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
lea eax, [ebp - 0x1ac]
push eax
mov edx, 0x48b94e
lea eax, [ebp - 0x1b0]
call fcn.00474b48
inc dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x1b4], eax
lea edx, [ebp - 0x1b0]
inc dword [ebp - 0x210]
lea ecx, [ebp - 0x1b4]
pop eax
call fcn.00474d9c
lea eax, [ebp - 0x1b4]
xor edx, edx
mov dword [ebp - 0x1b8], edx
lea ecx, [ebp - 0x1b8]
inc dword [ebp - 0x210]
lea edx, [ebp + 0xc]
call fcn.00474d9c
lea eax, [ebp - 0x1b8]
xor ecx, ecx
mov dword [ebp - 0x1bc], ecx
lea ecx, [ebp - 0x1bc]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
lea edx, [ebp - 0x1bc]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1bc]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1b8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1b4]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1ac]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1a8]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 8
jmp 0x408009
mov word [ebp - 0x21c], 0xc8
mov edx, 0x48b953
lea eax, [ebp - 0x1c0]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x1c0]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
je 0x407bc0
mov edx, 0x48b955
lea eax, [ebp - 0x1c4]
call fcn.00474b48
inc dword [ebp - 0x210]
lea edx, [ebp - 0x1c4]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x1c4]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x210]
call fcn.00474d44
pop ecx
test ecx, ecx
jne 0x407bc4
xor eax, eax
jmp 0x407bc9
mov eax, 1
push eax
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1c0]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x408009
mov word [ebp - 0x21c], 0xe0
xor eax, eax
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x1c8]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov edx, dword [ebp - 0x1c8]
test edx, edx
je 0x407c26
mov ecx, dword [ebp - 0x1c8]
jmp 0x407c2b
mov ecx, 0x48b958
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x1c8]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x210]
call fcn.00474d44
mov word [ebp - 0x21c], 0xd4
test bl, bl
jne 0x407c6b
mov ecx, dword [ebp - 0x150]
cmp ecx, 0x10
jne 0x407dd7
mov word [ebp - 0x21c], 0xec
xor eax, eax
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x1cc]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea eax, [ebp - 0x1cc]
mov edx, 0x48a694
call fcn.00474e40
test al, al
lea eax, [ebp - 0x1cc]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x210]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x407dd7
push 0
xor eax, eax
mov word [ebp - 0x21c], 0xf8
mov dword [ebp - 0x1d0], eax
lea eax, [ebp + 0xc]
inc dword [ebp - 0x210]
lea ecx, [ebp - 0x1d0]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
mov edx, dword [ebp - 0x1d0]
test edx, edx
je 0x407d0d
mov ecx, dword [ebp - 0x1d0]
jmp 0x407d12
mov ecx, 0x48b959
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1d0]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 0x104
xor eax, eax
mov dword [ebp - 0x1d4], eax
lea ecx, [ebp - 0x1d4]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x1d4]
mov eax, esi
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1d4]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 0x110
xor ecx, ecx
mov dword [ebp - 0x1d8], ecx
lea ecx, [ebp - 0x1d8]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 0xc]
call fcn.00474d9c
lea edx, [ebp - 0x1d8]
mov eax, dword [ebp - 0x230]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00474d44
jmp 0x408000
push 0
xor ecx, ecx
mov word [ebp - 0x21c], 0x11c
mov dword [ebp - 0x1dc], ecx
lea ecx, [ebp - 0x1dc]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 0xc]
call fcn.00474d9c
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x407e16
mov edx, dword [ebp - 0x1dc]
jmp 0x407e1b
mov edx, 0x48b95b
push edx
xor eax, eax
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0x1e0]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov ecx, dword [ebp - 0x1e0]
test ecx, ecx
je 0x407e50
mov eax, dword [ebp - 0x1e0]
jmp 0x407e55
mov eax, 0x48b95a
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
lea eax, [ebp - 0x1e0]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x210]
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1dc]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x408000
mov word [ebp - 0x21c], 0x128
xor eax, eax
mov dword [ebp - 0x1e4], eax
lea ecx, [ebp - 0x1e4]
inc dword [ebp - 0x210]
lea edx, [ebp + 8]
mov eax, 0x48b95c
call fcn.00475018
lea eax, [ebp - 0x1e4]
xor edx, edx
mov dword [ebp - 0x1e8], edx
lea ecx, [ebp - 0x1e8]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
lea eax, [ebp - 0x1e8]
push eax
mov edx, 0x48b96b
lea eax, [ebp - 0x1ec]
call fcn.00474b48
inc dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x1f0], eax
lea edx, [ebp - 0x1ec]
inc dword [ebp - 0x210]
lea ecx, [ebp - 0x1f0]
pop eax
call fcn.00474d9c
lea eax, [ebp - 0x1f0]
xor edx, edx
mov dword [ebp - 0x1f4], edx
lea ecx, [ebp - 0x1f4]
inc dword [ebp - 0x210]
lea edx, [ebp + 0xc]
call fcn.00474d9c
lea eax, [ebp - 0x1f4]
xor ecx, ecx
mov dword [ebp - 0x1f8], ecx
lea ecx, [ebp - 0x1f8]
inc dword [ebp - 0x210]
lea edx, [ebp - 0x14c]
call fcn.00474d9c
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1f8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1f4]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1f0]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1ec]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1e8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1e4]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x21c], 8
lea eax, [ebp - 0x158]
call fcn.0045f980
test eax, eax
je 0x407b41
lea eax, [ebp - 0x158]
call fcn.0045f9a4
mov word [ebp - 0x21c], 8
xor ebx, ebx
jmp 0x4080c9
mov eax, dword [ebp + 0x10]
xor edx, edx
push eax
lea ecx, [ebp - 0x1fc]
mov word [ebp - 0x21c], 0x134
mov dword [ebp - 0x1fc], edx
mov edx, ebx
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x230]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x1fc]
xor ecx, ecx
mov edx, dword [eax]
mov eax, esi
push edx
mov dword [ebp - 0x200], ecx
inc dword [ebp - 0x210]
lea ecx, [ebp - 0x200]
mov edi, dword [eax]
mov edx, ebx
call dword [edi + 0xc]
lea eax, [ebp - 0x200]
mov edx, dword [eax]
push edx
call fcn.0040730c
add esp, 0xc
dec dword [ebp - 0x210]
lea eax, [ebp - 0x200]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp - 0x1fc]
mov edx, 2
call fcn.00474d44
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x408037
mov ebx, esi
mov dword [ebp - 0x208], ebx
test ebx, ebx
je 0x40810e
mov eax, dword [ebx]
mov dword [ebp - 0x204], eax
mov word [ebp - 0x21c], 0x14c
mov edx, 3
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x21c], 0x140
lea edx, [ebp - 0x330]
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x14c]
dec dword [ebp - 0x210]
dec dword [ebp - 0x210]
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x210]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x22c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret