Function at 0x10002b70
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044242
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x1005e06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
add ecx, 0xa4
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x290], ecx
mov eax, dword [ecx]
mov esi, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], esi
mov eax, dword [esi + 4]
mov dword [ebp - 0x280], eax
cmp byte [eax + 0xd], 0
jne 0x10002cc8
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10002bfd
mov edx, dword [edi]
cmp dword [eax + 0x24], 0x10
lea ecx, [eax + 0x10]
jb 0x10002c09
mov ecx, dword [eax + 0x10]
mov esi, dword [ebp - 0x27c]
mov eax, dword [eax + 0x20]
mov edi, eax
mov dword [ebp - 0x274], eax
cmp dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [ebp - 0x284]
cmovb edi, dword [eax + 0x10]
sub edi, 4
jb 0x10002c41
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002c46
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10002c30
cmp edi, 0xfffffffc
je 0x10002c7a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10002c73
cmp edi, 0xfffffffd
je 0x10002c7a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10002c73
cmp edi, 0xfffffffe
je 0x10002c7a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10002c73
cmp edi, 0xffffffff
je 0x10002c7a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10002c7a
sbb eax, eax
or eax, 1
jmp 0x10002c7c
xor eax, eax
mov edi, dword [ebp - 0x27c]
test eax, eax
jne 0x10002c9c
mov eax, dword [ebp - 0x274]
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jbe 0x10002c98
or eax, 0xffffffff
jmp 0x10002c9c
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
mov eax, dword [ebp - 0x280]
je 0x10002cae
mov eax, dword [eax + 8]
jmp 0x10002cb8
mov esi, eax
mov eax, dword [eax]
mov dword [ebp - 0x284], esi
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x280], eax
je 0x10002bf3
mov eax, dword [ebp - 0x288]
cmp esi, eax
je 0x10002d89
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x10002ce2
mov edx, dword [esi + 0x10]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x10002cec
mov ecx, dword [edi]
mov eax, dword [esi + 0x20]
mov esi, dword [ebp - 0x27c]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x274], eax
cmp eax, dword [esi + 0x10]
mov esi, dword [ebp - 0x284]
cmovb edi, eax
sub edi, 4
jb 0x10002d21
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002d26
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10002d10
cmp edi, 0xfffffffc
je 0x10002d5a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10002d53
cmp edi, 0xfffffffd
je 0x10002d5a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10002d53
cmp edi, 0xfffffffe
je 0x10002d5a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10002d53
cmp edi, 0xffffffff
je 0x10002d5a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10002d5a
sbb eax, eax
or eax, 1
jmp 0x10002d5c
xor eax, eax
test eax, eax
jne 0x10002d7c
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x274]
mov ecx, dword [edx + 0x10]
cmp eax, ecx
jbe 0x10002d78
or eax, 0xffffffff
jmp 0x10002d7c
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
mov eax, dword [ebp - 0x288]
je 0x10002d8b
mov esi, eax
cmp esi, eax
jne 0x1000314e
push 0x101
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10028280
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x240], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002de0
sub ecx, edx
lea eax, [ebp - 0x228]
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.10004bb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
mov eax, edx
mov ecx, dword [ebp - 0x230]
sub eax, ecx
push 5
push str.Log_
cmp eax, 5
jb 0x10002e49
cmp edx, 0x10
lea esi, [ebp - 0x240]
lea eax, [ecx + 5]
cmovae esi, dword [ebp - 0x240]
add esi, ecx
mov dword [ebp - 0x230], eax
push esi
call fcn.10028450
add esp, 0xc
mov byte [esi + 5], 0
jmp 0x10002e63
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x240]
push dword [ebp - 0x274]
push 5
call fcn.10006170
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
push 0
cmovae eax, dword [ebp - 0x240]
push eax
call fcn.1002e2c9
add esp, 8
test eax, eax
je 0x10002eab
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call fcn.1002ebec
add esp, 4
test eax, eax
jne 0x100030ad
mov edi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x240]
push edi
call fcn.10003710
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 4
jb 0x10002ef2
lea ecx, [edx + 4]
mov dword [eax + 0x10], ecx
cmp esi, 0x10
jb 0x10002ed9
mov eax, dword [eax]
push 4
lea esi, [eax + edx]
push str..log
push esi
call fcn.10028450
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x10002f0f
push 4
push str..log
mov byte [ebp - 0x274], 0
mov ecx, eax
push dword [ebp - 0x274]
push 4
call fcn.10006170
cmp dword [ebp - 0x22c], 0x10
lea esi, [ebp - 0x240]
mov dword [ebp - 0xd0], 0x10055238
cmovae esi, dword [ebp - 0x240]
mov dword [ebp - 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x274], 1
lea ecx, [ebp - 0xd0]
push eax
call fcn.10005450
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xcc]
call fcn.100052e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x80], 0
jne 0x10003014
push 0x40
push 0xa
push esi
call fcn.1000f472
add esp, 0xc
test eax, eax
je 0x10003014
push 1
push eax
lea ecx, [ebp - 0xcc]
call fcn.10004e70
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x288], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
call fcn.10005ee0
add esp, 4
lea ecx, [ebp - 0xcc]
push eax
call fcn.10004d20
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x1000303f
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1000303f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
jmp 0x1000303f
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001bd0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0xd0]
push eax
push edi
mov byte [ebp - 4], 7
call fcn.100064f0
push eax
add eax, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x278]
push eax
call fcn.10006580
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call fcn.10003590
cmp byte [ebp - 0x274], 0
je 0x100030ea
mov edx, dword [ebp - 0x22c]
cmp edx, 0x10
jb 0x10003555
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003575
jmp 0x10003542
mov esi, dword [ebp - 0x278]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
cmp edx, 0x10
jb 0x10003131
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000357a
push edx
push ecx
call fcn.10010ff0
add esp, 8
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
jmp 0x10003154
mov edi, dword [ebp - 0x27c]
cmp dword [edi + 0x2c], 0x10
lea edx, [edi + 0x18]
mov eax, dword [edx + 0x10]
jb 0x10003162
mov edx, dword [edx]
lea edi, [esi + 0x28]
push eax
mov ecx, edi
call fcn.10006830
add esp, 4
push eax
call fcn.10005ea0
mov edx, dword [edi]
add esp, 4
mov dword [ebp - 0x278], edi
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi + 0x38]
test ecx, ecx
je 0x10003193
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi]
mov dword [ebp - 4], 8
mov eax, edx
mov ecx, dword [edx + 4]
cmp dword [ecx + edi + 0xc], 0
jne 0x100031b9
mov ecx, dword [ecx + edi + 0x3c]
test ecx, ecx
je 0x100031b9
cmp ecx, edi
je 0x100031b9
call fcn.100042c0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
test eax, eax
sete byte [ebp - 0x274]
mov dword [ebp - 4], 9
test al, 6
jne 0x10003204
mov ecx, dword [ecx + edi + 0x38]
lea eax, [ebp - 0x2a8]
sub esp, 0x10
push eax
call fcn.10005070
mov dword [ebp - 4], 0xa
call fcn.1000f203
test al, al
jne 0x100031fe
mov ecx, edi
call fcn.100053c0
mov byte [ebp - 4], 0xb
jmp 0x1000323d
xorps xmm0, xmm0
mov dword [ebp - 0x2a8], 0xffffffff
mov dword [ebp - 0x2a4], 0xffffffff
movups xmmword [ebp - 0x2a0], xmm0
mov dword [ebp - 4], 0xc
call fcn.1000f203
test al, al
jne 0x10003239
mov ecx, edi
call fcn.100053c0
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 0x38]
test ecx, ecx
je 0x1000324f
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2a0]
add ecx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x29c]
adc eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x274], eax
js 0x1000354e
jg 0x10003288
cmp ecx, 0x3e8000
jb 0x1000354e
lea ecx, [edi + 4]
call fcn.10004f70
test eax, eax
jne 0x100032b5
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001bd0
push 0x101
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.10028280
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x270], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003301
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.10004bb0
mov dword [ebp - 4], 0xe
mov edx, dword [ebp - 0x25c]
mov eax, edx
mov ecx, dword [ebp - 0x260]
sub eax, ecx
push 5
push str.Log_
cmp eax, 5
jb 0x10003370
cmp edx, 0x10
lea edi, [ebp - 0x270]
lea eax, [ecx + 5]
cmovae edi, dword [ebp - 0x270]
add edi, ecx
mov dword [ebp - 0x260], eax
push edi
call fcn.10028450
add esp, 0xc
mov byte [edi + 5], 0
lea eax, [ebp - 0x270]
jmp 0x1000338a
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x270]
push dword [ebp - 0x274]
push 5
call fcn.10006170
push dword [ebp - 0x27c]
mov ecx, eax
call fcn.10003710
mov edi, dword [eax + 0x14]
mov ecx, edi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 4
jb 0x100033cc
lea ecx, [edx + 4]
mov dword [eax + 0x10], ecx
cmp edi, 0x10
jb 0x100033b3
mov eax, dword [eax]
push 4
lea edi, [eax + edx]
push str..log
push edi
call fcn.10028450
add esp, 0xc
mov byte [edi + 4], 0
jmp 0x100033e9
push 4
push str..log
mov byte [ebp - 0x274], 0
mov ecx, eax
push dword [ebp - 0x274]
push 4
call fcn.10006170
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x258]
call fcn.100037d0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x244]
mov eax, edx
mov ecx, dword [ebp - 0x248]
sub eax, ecx
push 4
push str..bak
cmp eax, 4
jb 0x10003445
cmp edx, 0x10
lea edi, [ebp - 0x258]
lea eax, [ecx + 4]
cmovae edi, dword [ebp - 0x258]
add edi, ecx
mov dword [ebp - 0x248], eax
push edi
call fcn.10028450
add esp, 0xc
mov byte [edi + 4], 0
jmp 0x1000345f
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x258]
push dword [ebp - 0x274]
push 4
call fcn.10006170
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
call fcn.1002bc46
add esp, 4
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x270]
cmovae ecx, dword [ebp - 0x258]
cmp dword [ebp - 0x25c], 0x10
push ecx
cmovae eax, dword [ebp - 0x270]
push eax
call fcn.1002e372
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x274]
add esp, 8
push esi
push eax
call fcn.10005570
mov edx, dword [ebp - 0x244]
cmp edx, 0x10
jb 0x100034fb
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100034f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000357f
push edx
push ecx
call fcn.10010ff0
add esp, 8
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
cmp edx, 0x10
jb 0x10003555
mov ecx, dword [ebp - 0x270]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003584
push edx
push ecx
call fcn.10010ff0
add esp, 8
jmp 0x10003555
mov ecx, edi
call fcn.100042c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100109b3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1002f402
call fcn.1002f402
call fcn.1002f402
call fcn.1002f402
int3