Function at 0x10004800
Capabilities:
Create directory
Delete file
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004698d
mov eax, dword fs:[0]
push eax
mov eax, 0x27dc
call fcn.10037760
mov eax, dword [0x10052084]
xor eax, esp
mov dword [esp + 0x27d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10052084]
xor eax, esp
push eax
lea eax, [esp + 0x27f0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x288c]
mov eax, dword [esp + 0x2828]
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edi
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x22e9]
push ebx
mov dword [esp + 0x2800], 3
push ecx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x22f0], bl
call fcn.1002fe50
mov eax, dword [esp + 0x287c]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x2884], esi
jae 0x100048a1
lea eax, [esp + 0x2870]
push 0x104
lea edx, [esp + 0x22e8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x22e4]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100048d0
sub eax, edx
push eax
lea eax, [esp + 0x22e8]
push eax
lea ecx, [esp + 0x68]
call fcn.10002c10
mov byte [esp + 0x27f8], 4
cmp dword [esp + 0x78], esi
mov eax, dword [esp + 0x64]
jae 0x10004903
lea eax, [esp + 0x64]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 5
push str..temp
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10002c10
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2838]
push edx
lea esi, [esp + 0xa0]
mov byte [esp + 0x2800], 5
call fcn.100024d0
add esp, 8
mov byte [esp + 0x27f8], 7
cmp dword [esp + 0x34], 0x10
jb 0x1000496b
mov eax, dword [esp + 0x20]
push eax
call fcn.1002b1d9
add esp, 4
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x64]
push edx
lea esi, [esp + 0x4c]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.100024d0
lea eax, [esp + 0x283c]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea esi, [esp + 0x8c]
mov byte [esp + 0x2808], 8
call fcn.100024d0
add esp, 0x10
mov byte [esp + 0x27f8], 9
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x100049cc
lea eax, [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x100049ed
lea eax, [esp + 0x80]
push eax
call esi
push 0x103
lea edx, [esp + 0xb9]
push ebx
push edx
mov byte [esp + 0xc0], bl
call fcn.1002fe50
add esp, 0xc
push 0x114
lea eax, [esp + 0x1bc]
push ebx
push eax
call fcn.1002fe50
mov eax, dword [esp + 0x2844]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x284c], esi
jae 0x10004a3f
lea eax, [esp + 0x2838]
push eax
push 0x1004a050
lea ecx, [esp + 0xbc]
push 0x104
push ecx
call fcn.1002b64a
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c8], edx
mov edx, dword [edi + 0xc]
add esp, 0x10
cmp dword [esp + 0x2884], esi
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x2870]
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1c4], edx
jae 0x10004a98
lea eax, [esp + 0x2870]
push eax
push 0x1004a050
lea eax, [esp + 0x1d0]
push 0x104
push eax
call fcn.1002b64a
push 0xffc
lea ecx, [esp + 0x12e4]
push ebx
push ecx
call fcn.1002fe50
add esp, 0x1c
push 0xffc
lea edx, [esp + 0x2d4]
push ebx
push edx
mov dword [esp + 0x2d8], ebx
call fcn.1002fe50
mov eax, dword [esp + 0x2838]
add esp, 0xc
mov ecx, 0x86
lea esi, [esp + 0xb4]
lea edi, [esp + 0x12de]
push eax
mov byte [esp + 0x12d8], 0xe9
mov byte [esp + 0x12d9], 1
mov dword [esp + 0x12d0], 0x218
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2d4]
push edx
mov eax, 0x1000
lea esi, [esp + 0x12d8]
call fcn.10037760
mov ecx, 0x400
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10008eb0
add esp, 0x100c
cmp eax, ebx
je 0x10004d77
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0xb4]
mov dword [esp + 0x34], esp
push eax
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x312], bl
call fcn.100024d0
sub esp, 0x14
mov byte [esp + 0x2830], 0xa
mov esi, esp
lea edx, [esp + 0x286c]
mov dword [esp + 0x4c], esp
push edx
lea eax, [esp + 0x28a8]
push eax
call fcn.100024d0
mov ecx, dword [esp + 0x2870]
add esp, 8
push ecx
lea edx, [esp + 0x31a]
mov byte [esp + 0x2834], 9
call fcn.10005460
add esp, 0x3c
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x10004be0
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x10004bd9
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x2848]
mov edx, dword [esp + 0x2864]
xor eax, eax
mov dword [esp + 0x22d4], eax
mov dword [esp + 0x22d8], eax
mov dword [esp + 0x22dc], eax
mov word [esp + 0x22e0], ax
lea eax, [edx + edi + 0x2b]
mov dword [esp + 0x1c], eax
add eax, 1
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], eax
call fcn.1001c248
mov ecx, dword [esp + 0x2828]
mov edx, dword [esp + 0x2820]
mov esi, eax
mov eax, dword [esp + 0x2824]
mov dword [esi], eax
mov eax, dword [esp + 0x2894]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x288c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [ebp + 4]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x20], edx
mov ax, word [ebp + 0x10]
mov word [esi + 0x24], ax
mov cl, byte [ebp + 0x12]
mov byte [esi + 0x26], cl
mov dword [esi + 0x27], edi
mov eax, dword [esp + 0x283c]
add esp, 4
cmp dword [esp + 0x284c], 0x10
jae 0x10004c9d
lea eax, [esp + 0x2838]
push edi
push eax
lea edx, [esi + 0x2b]
push edx
call fcn.10033a50
mov eax, dword [esp + 0x2860]
add esp, 0xc
cmp dword [esp + 0x2868], 0x10
jae 0x10004cc3
lea eax, [esp + 0x2854]
mov ecx, dword [esp + 0x2864]
push ecx
push eax
lea edx, [edi + esi + 0x2b]
push edx
call fcn.10033a50
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x23f1]
push 0
push eax
mov byte [esp + 0x23f8], 0
call fcn.1002fe50
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x14], 0
mov dword [esp + 0x22d0], 0x400
setne cl
mov byte [edx + esi], cl
cmp dword [esp + 0x2818], 0x10
mov eax, dword [esp + 0x2804]
mov byte [esp + 0x24], 0xea
mov byte [esp + 0x25], 1
jae 0x10004d34
lea eax, [esp + 0x2804]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x23f0]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov word [eax + 0x10], bx
lea ebx, [esp + 0x22ec]
mov ecx, esi
call fcn.10008c50
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x10004fee
xor ebx, ebx
mov esi, dword [esp + 0x2848]
xor eax, eax
mov dword [esp + 0x22d8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x2864]
lea eax, [eax + esi + 0x2b]
mov dword [esp + 0x22d0], eax
add eax, 1
push eax
mov byte [esp + 0x22dc], 0xe9
mov byte [esp + 0x22dd], 1
mov dword [esp + 0x1c], eax
call fcn.1001c248
mov ecx, dword [esp + 0x2824]
mov edx, dword [esp + 0x2828]
mov edi, eax
mov eax, dword [esp + 0x2820]
mov dword [edi], ecx
mov ecx, dword [esp + 0x2894]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x288c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov eax, dword [ebp]
mov dword [edi + 0x14], eax
mov ecx, dword [ebp + 4]
mov dword [edi + 0x18], ecx
mov edx, dword [ebp + 8]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov cx, word [ebp + 0x10]
mov word [edi + 0x24], cx
mov dl, byte [ebp + 0x12]
mov byte [edi + 0x26], dl
mov dword [edi + 0x27], esi
mov eax, dword [esp + 0x283c]
add esp, 4
cmp dword [esp + 0x284c], 0x10
jae 0x10004e3e
lea eax, [esp + 0x2838]
push esi
push eax
lea eax, [edi + 0x2b]
push eax
call fcn.10033a50
mov eax, dword [esp + 0x2860]
mov ebp, 0x10
add esp, 0xc
cmp dword [esp + 0x2868], ebp
jae 0x10004e68
lea eax, [esp + 0x2854]
mov ecx, dword [esp + 0x2864]
push ecx
push eax
lea edx, [esi + edi + 0x2b]
push edx
call fcn.10033a50
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x23f1]
push ebx
push eax
mov byte [esp + 0x23f8], bl
call fcn.1002fe50
mov eax, dword [esp + 0x2810]
add esp, 0xc
cmp dword [esp + 0x2818], ebp
mov dword [esp + 0x1c], 0x400
jae 0x10004eba
lea eax, [esp + 0x2804]
mov edx, dword [esp + 0x22d0]
push eax
lea ecx, [esp + 0x23f0]
push ecx
mov ecx, dword [esp + 0x22e0]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
xor ebp, ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebp
lea ebx, [esp + 0x38]
mov ecx, edi
mov word [eax + 0x10], bp
call fcn.10008c50
add esp, 0x1c
test eax, eax
je 0x10004fe5
mov edx, dword [esp + 0x2894]
push edx
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0xb8]
mov dword [esp + 0x34], esp
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.100024d0
sub esp, 0x14
mov esi, esp
lea edx, [esp + 0x2870]
mov dword [esp + 0x78], esp
push edx
lea eax, [esp + 0x2890]
push eax
mov byte [esp + 0x283c], 0xb
call fcn.100024d0
add esp, 8
mov byte [esp + 0x2834], 9
call fcn.100052c0
mov esi, eax
add esp, 0x3c
test esi, esi
jne 0x10004f78
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x10004f71
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x22d0]
test esi, esi
setne cl
mov byte [edx + edi], cl
cmp dword [esp + 0x2818], 0x10
mov eax, dword [esp + 0x2804]
mov byte [esp + 0x22d8], 0xea
mov byte [esp + 0x22d9], 1
jae 0x10004faf
lea eax, [esp + 0x2804]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x22d8]
push eax
lea eax, [esp + 0x23f0]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebp
lea ebx, [esp + 0x38]
mov ecx, edi
mov word [eax + 0x10], bp
call fcn.10008c50
add esp, 0x1c
push edi
call fcn.1002b1d9
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x2890], 3
je 0x10005278
xor eax, eax
mov dword [esp + 0x22d1], eax
mov dword [esp + 0x22d5], eax
mov dword [esp + 0x22d9], eax
mov word [esp + 0x22dd], ax
mov byte [esp + 0x22df], al
lea eax, [esp + 0x22d0]
push eax
sub esp, 0x1c
mov esi, esp
lea ecx, [esp + 0xb8]
mov dword [esp + 0x5c], esp
push ecx
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x22f8], bl
call fcn.100024d0
add esp, 8
call fcn.10006070
add esp, 0x20
cmp eax, ebx
lea ebp, [ebx + 0x10]
je 0x100050f3
mov ecx, dword [esp + 0x38]
mov eax, ebp
lea edx, [esp + 0x22d0]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1000508c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10005074
cmp eax, ebx
je 0x100050e9
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x100050db
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x100050e9
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x100050db
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x100050e9
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x100050db
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x100050e9
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x100050e9
cmp esi, ebx
mov eax, 1
jg 0x100050eb
or eax, 0xffffffff
jmp 0x100050eb
xor eax, eax
cmp eax, ebx
je 0x1000527d
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x10005101
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x94], ebp
jb 0x10005125
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x5c], ebp
mov esi, 0xf
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x10005152
mov edx, dword [esp + 0x48]
push edx
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x10005177
mov eax, dword [esp + 0x9c]
push eax
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x78], ebp
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x1000519f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x2818], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x100051c4
mov edx, dword [esp + 0x2804]
push edx
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x284c], ebp
mov dword [esp + 0x2818], esi
mov dword [esp + 0x2814], ebx
mov byte [esp + 0x2804], bl
jb 0x100051f2
mov eax, dword [esp + 0x2838]
push eax
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x2868], ebp
mov dword [esp + 0x284c], esi
mov dword [esp + 0x2848], ebx
mov byte [esp + 0x2838], bl
jb 0x10005220
mov ecx, dword [esp + 0x2854]
push ecx
call fcn.1002b1d9
add esp, 4
cmp dword [esp + 0x2884], ebp
mov dword [esp + 0x2868], esi
mov dword [esp + 0x2864], ebx
mov byte [esp + 0x2854], bl
jb 0x1000524e
mov edx, dword [esp + 0x2870]
push edx
call fcn.1002b1d9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x27f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27d8]
xor ecx, esp
call fcn.1002b34a
add esp, 0x27e8
ret
mov ebp, 0x10
cmp dword [esp + 0x94], ebp
mov ecx, dword [esp + 0x80]
mov edi, 1
jae 0x10005299
lea ecx, [esp + 0x80]
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x100052a7
lea eax, [esp + 0x48]
push ecx
push eax
call fcn.1002cfa5
add esp, 8
jmp 0x1000510c