Function at 0x4074d0
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
movsx ecx, word [eax*2 + 0x43fcac]
push edi
mov dword [ebp - 4], ecx
mov edi, 0x12
mov ecx, dword [0x44a6e0]
cmp ecx, edi
jle 0x407543
mov ebx, 0x240
nop dword [eax]
mov edx, dword [0x44a6d0]
mov esi, dword [ebp + 0x14]
movsx eax, word [edx + ebx + 2]
test dword [ebp - 4], eax
je 0x407538
mov eax, dword [edx + ebx + 0x1c]
test eax, eax
je 0x407538
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
add esp, 0x10
test eax, eax
jne 0x40782e
mov ecx, dword [0x44a6e0]
inc edi
add ebx, 0x20
cmp edi, ecx
jl 0x407500
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp eax, 0xc
ja case.0x40754f.3
jmp dword [eax*4 + 0x40784c]
mov edi, dword [0x44a70c]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
movzx eax, word [esi + 2]
mov ecx, eax
test ax, ax
jne 0x407592
push dword [esi + 0x10]
call fcn.00406ad0
mov dword [edi + 0xec], 7
add esp, 4
movzx ecx, word [esi + 2]
cmp cx, 1
jne case.0x40754f.3
mov eax, dword [0x44a6f8]
mov ecx, dword [esi + 0x10]
mov dword [0x44a6fc], eax
call fcn.00404710
mov eax, dword [0x44a70c]
cmp dword [eax + 0xec], 4
je case.0x40754f.3
mov dword [eax + 0xec], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x44a70c]
mov edx, esi
lea ecx, [ecx + 0x31c]
call fcn.0040d7e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
mov eax, dword [0x44a70c]
push dword [ebp + 0x10]
push esi
push dword [eax + 0x31c]
call fcn.00401760
mov ecx, eax
add esp, 0x10
test ecx, ecx
js 0x407835
mov eax, dword [0x44a70c]
mov dword [eax + 0x314], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov ecx, 0x43fc7c
test ebx, ebx
mov eax, 0x43ff88
cmovs eax, ecx
push eax
mov eax, dword [0x44a70c]
push dword [eax + 0x31c]
call fcn.00419df7
mov edi, eax
add esp, 8
test edi, edi
je 0x407835
test ebx, ebx
js 0x407667
push 0
push ebx
push edi
call fcn.0041a1be
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push esi
call fcn.0041aa20
push edi
mov esi, eax
call fcn.00419e84
add esp, 0x14
test esi, esi
js 0x407835
mov ecx, dword [0x44a70c]
xor eax, eax
mov dword [ecx + 0x314], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44a70c]
push dword [eax + 0x31c]
call fcn.00401890
mov ecx, dword [0x44a70c]
add esp, 4
mov dword [ecx + 0x314], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44a70c]
push dword [eax + 0x31c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne case.0x40754f.3
jmp 0x407835
mov eax, dword [0x44a70c]
push dword [eax + 0x31c]
call fcn.00421d48
add esp, 4
test eax, eax
je case.0x40754f.3
jmp 0x407835
mov eax, dword [0x44a70c]
push dword [eax + 0x31c]
call fcn.004219d5
add esp, 4
test eax, eax
je case.0x40754f.3
jmp 0x407835
mov eax, dword [0x44a70c]
mov ebx, dword [eax + 0x31c]
mov ecx, ebx
call fcn.00401240
push ebx
call fcn.00401890
mov edi, eax
add esp, 4
test edi, edi
js 0x407835
push 0x43fc7c
push esi
call fcn.00419df7
mov esi, eax
add esp, 8
mov dword [ebp + 8], esi
test esi, esi
je 0x407835
mov ecx, ebx
call fcn.00401350
push 0x8000
mov dword [ebp - 4], eax
call fcn.0041c954
add esp, 4
mov ebx, eax
test edi, edi
je 0x4077b0
nop
push dword [ebp - 4]
mov esi, 0x8000
mov ecx, ebx
cmp edi, esi
cmovl esi, edi
mov edx, esi
call fcn.004013b0
push dword [ebp + 8]
push esi
push 1
push ebx
call fcn.0041aa20
add esp, 0x14
cmp eax, esi
jl 0x4077ad
sub edi, esi
jne 0x407780
mov esi, dword [ebp + 8]
cmp dword [0x44a6a4], 0
jne 0x4077c7
push dword [0x44a60c]
call fcn.00419e84
add esp, 4
push esi
call fcn.00419e84
push ebx
call fcn.0041c652
add esp, 8
test edi, edi
je case.0x40754f.3
jmp 0x407835
push 0x1000
call fcn.0040d6f0
mov ecx, dword [0x44a70c]
push dword [ebp + 0xc]
mov dword [0x44a708], eax
mov ecx, dword [ecx + 0x31c]
call fcn.00414130
mov ecx, dword [0x44a70c]
add esp, 8
mov dword [ecx + 0x310], eax
mov eax, dword [0x44a708]
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x44a708]
call fcn.0040d780
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4482c4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xc
push eax
call fcn.004175f9
nop
push esi
jne 4225167
add byte [eax + edi*2], ch
inc eax
add byte [eax + edi*2], ch
inc eax
add bl, dl
jne 0x40789b
add bh, ch
jne 0x40789f
add byte [edi], ah
jbe 0x4078a3
add byte [ebx - 0x3cffbf8a], bl
jbe 0x4078ab
add cl, ah
jbe 0x4078af
add byte [ecx], al
ja 0x4078b3
add byte [ecx], ah
ja 0x4078b7
add ah, bl
ja 0x4078bb
add byte [esi], bl
js 0x4078bf
add byte [ecx + 0x44a70c], ah
push esi
lea esi, [ecx + ecx*2]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x40789b
or edi, dword [ecx + 1]
mov ecx, 1
mov word [eax + esi*8], cx
pop esi
ret
cmp ecx, 4
je 0x4078b6
push ss
cmp word [eax + esi*8 + 2], 2
lock add al, byte [edx]
jne 0x4078af
cmp dword [eax + esi*8 + 0x14], 0
adc al, 0
jmp 0x4078b4
cmp dword [eax + esi*8 + 0x10], 0
add byte [ecx + ecx - 0x47], dh
je 0x4078bf
mov ecx, 2
add al, byte [eax]
add byte [eax], al
mov word [eax + esi*8], cx
pop esi
ret