Function at 0x431950
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482c80
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x496004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x18]
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4319c0
mov eax, 0x80004004
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x4319d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x4c], 0
push 8
call fcn.00436ba1
mov esi, eax
mov dword [ebp - 0x14], 3
xor eax, eax
mov dword [ebp - 0x1c], esi
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x38]
mov word [esi], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
push edx
push 3
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov ax, word [ebp - 0x38]
test ebx, ebx
jne 0x431a92
mov edx, 2
test ax, ax
jne 0x431a87
lea esi, [edi + 0x50]
lea ecx, [ebp - 0x1c]
cmp esi, ecx
je 0x431b08
mov ebx, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
cmp ebx, 3
jbe 0x431a68
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.00436a37
mov ecx, dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ebx
lea eax, [ebx*2 + 2]
mov dword [ebp - 0x18], ebx
push eax
push dword [esi]
push ecx
call fcn.00441fd0
mov ax, word [ebp - 0x38]
add esp, 0xc
jmp 0x431b0a
cmp ax, 8
je 0x431aa8
mov ebx, 0x80004005
test ax, ax
je 0x432241
lea ecx, [ebp - 0x38]
call fcn.004116b0
jmp 0x432241
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 3
jbe 0x431aeb
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [ebp - 0x1c]
mov esi, eax
call fcn.00436a37
add esp, 8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
lea eax, [ebx*2 + 2]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 0x20]
push esi
call fcn.00441fd0
mov ax, word [ebp - 0x38]
add esp, 0xc
jmp 0x431b0d
xor ebx, ebx
mov esi, dword [ebp - 0x1c]
lea ecx, [edi + 0x1c]
lea edx, [ebp - 0x1c]
cmp edx, ecx
je 0x431b67
cmp ebx, dword [ecx + 8]
jbe 0x431b4d
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [edi + 0x1c]
mov esi, eax
call fcn.00436a37
lea ecx, [edi + 0x1c]
add esp, 8
mov dword [ecx], esi
mov esi, dword [ebp - 0x1c]
mov dword [ecx + 8], ebx
lea eax, [ebx*2 + 2]
mov dword [ecx + 4], ebx
push eax
push esi
push dword [ecx]
call fcn.00441fd0
mov ax, word [ebp - 0x38]
add esp, 0xc
test ax, ax
je 0x431b74
lea ecx, [ebp - 0x38]
call fcn.004116b0
cmp dword [ebp + 0x14], 0
jne 0x432260
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0xc]
push edx
push 9
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x432143
cmp word [ebp - 0x60], ax
jne 0x431bae
mov eax, dword [edi + 0x64]
jmp 0x431bc2
cmp word [ebp - 0x60], 0x13
je 0x431bbf
mov ebx, 0x80004005
jmp 0x432143
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x44], eax
lea edx, [ebp - 0x60]
mov eax, dword [edi + 0xc]
push edx
push 6
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x432143
cmp word [ebp - 0x58], ax
lea edx, [ebp - 0x38]
push edx
setne al
mov byte [ebp + 0xf], bl
mov byte [edi + 0x40], al
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0xc]
push 0x15
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
je 0x431c22
cmp word [ebp - 0x38], 0
je 0x432143
lea ecx, [ebp - 0x38]
call fcn.004116b0
jmp 0x432143
mov ax, word [ebp - 0x38]
cmp ax, 0xb
jne 0x431c37
cmp word [ebp - 0x30], 0
setne byte [ebp + 0xf]
jmp 0x431c3c
test ax, ax
je 0x431c44
lea ecx, [ebp - 0x38]
call fcn.004116b0
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0x60]
push edx
push 0xc
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x432143
movzx eax, word [ebp - 0x60]
test eax, eax
je 0x431c7d
cmp eax, 0x40
je 0x431c75
mov ebx, 0x80004005
jmp 0x432143
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
jmp 0x431c83
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x60]
mov dword [edi + 0x3c], ecx
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x38], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040bec0
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
jne 0x431cbc
mov dword [ebp + 8], 0x80004005
jmp 0x43210c
mov esi, dword [ebp - 0x24]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
lea ecx, [esi + esi]
mov dword [ebp - 0x64], eax
push ecx
push dword [ebp - 0x1c]
push eax
call fcn.00441fd0
add esp, 0x10
cmp byte [edi + 0x40], 0
jne 0x431d0f
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + ebx*4 - 4]
test esi, esi
je 0x431d0e
push dword [esi]
call fcn.00436a37
push 0xc
push esi
call fcn.00436b93
add esp, 0xc
dec ebx
test ebx, ebx
je 0x431e52
cmp byte [ebp + 0xf], 0
jne 0x431e52
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov dword [ebp + 0x14], eax
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x3c], eax
push ecx
push dword [edi + 0x10]
push esi
call fcn.00441fd0
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x10], ecx
test ebx, ebx
je 0x431e49
mov edi, esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x3c]
sub eax, esi
mov dword [ebp + 0x14], edx
mov ecx, dword [edx + 4]
cmp ecx, eax
jbe 0x431dab
add ecx, esi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x44]
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
lea ecx, [edi + esi*2]
lea eax, [eax*2 + 2]
push eax
push dword [edx]
push ecx
call fcn.00441fd0
mov eax, dword [ebp + 0x14]
add esp, 0xc
add esi, dword [eax + 4]
cmp byte [0x498871], 0
mov dword [ebp - 0x40], esi
jne 0x431df7
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.0040a910
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x34]
call fcn.00436a37
add esp, 4
jmp 0x431e00
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x3c], esi
jne 0x431e21
mov eax, esi
lea ecx, [ebp - 0x44]
shr eax, 1
add esi, 0x10
add eax, esi
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov eax, 0x5c
mov word [edi + esi*2], ax
inc ecx
inc esi
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 0x40], esi
mov word [edi + esi*2], ax
cmp ecx, ebx
jb 0x431d75
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x44]
push esi
call fcn.00436a37
add esp, 4
mov esi, dword [edi + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, 2
mov edi, dword [edi + 0x10]
add eax, esi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
add esi, esi
mov dword [ebp + 0x14], eax
push esi
push edi
push eax
call fcn.00441fd0
mov eax, dword [ebp - 0x24]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp + 0x14]
push ecx
push dword [ebp - 0x64]
add eax, esi
push eax
call fcn.00441fd0
mov edi, dword [ebp + 8]
add esp, 0x1c
cmp byte [edi + 0x40], 0
je 0x431fbb
lea ecx, [edi + 0x28]
lea eax, [ebp - 0xb8]
cmp eax, ecx
je 0x431f11
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x431ef6
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [edi + 0x28]
mov esi, eax
call fcn.00436a37
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x28]
add esp, 8
mov dword [ecx], esi
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push dword [ecx]
call fcn.00441fd0
add esp, 0xc
lea ecx, [edi + 0x28]
cmp byte [ebp + 0xf], 0
mov eax, dword [ecx]
je 0x431f60
cmp byte [0x498871], 0
jne 0x431f4f
mov edx, eax
lea ecx, [ebp - 0xac]
call fcn.0040a910
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xac]
call fcn.00436a37
add esp, 4
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x4320f9
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x4320f9
cmp byte [0x498871], 0
jne 0x431f7b
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x4320f9
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431fb1
lea ecx, [edi + 0x38]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x4320f9
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
push 8
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 0
mov word [ebp - 0x7c], 0
call fcn.00436ba1
mov esi, dword [ebp + 0x14]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 3
mov word [eax], cx
lea ecx, [ebp - 0xa0]
push esi
call fcn.0040f070
test al, al
je 0x432069
mov ecx, esi
call fcn.0040d760
test al, al
jne 0x432069
push str.Can_not_delete_output_file
lea ecx, [edi + 0xe4]
call fcn.0040a240
mov dword [ebp + 8], 0x80004005
jmp 0x4320ee
cmp byte [ebp + 0xf], 0
jne 0x43217f
push 0x18
call fcn.00436c23
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], vtable.COutFileStream.0
mov dword [esi + 8], 0xffffffff
mov dword [edi + 0x48], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x48]
push ecx
push 2
push 1
push 0x40000000
push dword [ebp + 0x14]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
add ecx, 8
call fcn.0040feb0
test al, al
jne 0x43215a
push str.Can_not_open_output_file
lea ecx, [edi + 0xe4]
call fcn.0040a240
mov dword [ebp + 8], 0x80004005
mov dword [ebp - 4], 1
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x78]
call fcn.00436a37
add esp, 4
push dword [ebp + 0x14]
call fcn.00436a37
push dword [ebp - 0x64]
call fcn.00436a37
add esp, 8
test ebx, ebx
je 0x432135
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + ebx*4 - 4]
dec ebx
test esi, esi
je 0x432131
push dword [esi]
call fcn.00436a37
push 0xc
push esi
call fcn.00436b93
mov eax, dword [ebp - 0x50]
add esp, 0xc
test ebx, ebx
jne 0x432113
push dword [ebp - 0x50]
call fcn.00436a37
mov ebx, dword [ebp + 8]
add esp, 4
cmp word [ebp - 0x60], 0
je 0x432152
lea ecx, [ebp - 0x60]
call fcn.004116b0
mov esi, dword [ebp - 0x1c]
jmp 0x432241
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x43216d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x4c], esi
mov dword [eax], esi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x14]
add edi, 0x28
lea eax, [ebp - 0xb8]
cmp eax, edi
je 0x4321da
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jbe 0x4321c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [edi]
mov esi, eax
call fcn.00436a37
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], esi
mov esi, dword [ebp + 0x14]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
lea eax, [eax*2 + 2]
push eax
push esi
push dword [edi]
call fcn.00441fd0
add esp, 0xc
push dword [ebp - 0x78]
call fcn.00436a37
push esi
call fcn.00436a37
push dword [ebp - 0x64]
call fcn.00436a37
add esp, 0xc
test ebx, ebx
je 0x432222
mov eax, dword [ebp - 0x50]
nop word [eax + eax]
mov esi, dword [eax + ebx*4 - 4]
dec ebx
test esi, esi
je 0x43221e
push dword [esi]
call fcn.00436a37
push 0xc
push esi
call fcn.00436b93
mov eax, dword [ebp - 0x50]
add esp, 0xc
test ebx, ebx
jne 0x432200
push dword [ebp - 0x50]
call fcn.00436a37
add esp, 4
cmp word [ebp - 0x60], 0
je 0x43223c
lea ecx, [ebp - 0x60]
call fcn.004116b0
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
push esi
call fcn.00436a37
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x43223f