Function at 0x409bd0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x49d014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x49f5b4]
push esi
push edi
mov dword [ebp - 0x4c], ecx
cmp dword [ebx + 0x98], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], ebx
jne 0x409d03
push 2
push 0x104
call fcn.00462e24
mov esi, eax
add esp, 8
test esi, esi
je 0x409d03
push 2
push 0x104
call fcn.00462e24
mov edi, eax
add esp, 8
test edi, edi
je 0x409c55
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x48e21c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.00462e3a
add esp, 4
cmp word [esi], 0
je 0x409cfa
push esi
call fcn.00464120
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c70
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x409ca3
lea edi, [esi - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409c90
mov eax, dword [0x48e224]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cb0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 4]
push eax
call fcn.00464148
mov ecx, eax
add esp, 4
mov dword [ebx + 0x98], ecx
mov edx, esi
nop dword [eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x409ce0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00462e3a
add esp, 4
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x409de8
mov ecx, dword [0x49f394]
push ecx
push 0x48e228
lea eax, [ecx + 1]
mov dword [0x49f394], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 2
push 0x104
call fcn.00462e24
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x409de8
mov ecx, ebx
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409d50
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d65
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409d96
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x409d96
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409d83
mov eax, dword [0x48e224]
mov dword [edi], eax
lea edx, [ebp - 0x2c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409da0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409db0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.MMFS2.dll_Ordinal_1031]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x409dfb
push ebx
call fcn.00464120
push ebx
call fcn.00462e3a
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f34f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x48]
cmp word [edi + 0x14], 0
jge 0x409ed5
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
test esi, esi
jne 0x409f41
mov eax, dword [ebp - 0x58]
add eax, 0x10
push 1
push eax
call fcn.00462e24
mov edi, eax
add esp, 8
mov dword [ebp - 0x60], edi
test edi, edi
jne 0x409e46
mov esi, 0xc3
jmp 0x409f3e
push 4
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
test esi, esi
jne 0x409ecb
push dword [ebp - 0x5c]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_765]
mov esi, eax
test esi, esi
jne 0x409ecb
mov ecx, dword [edi + 0x14]
lea edx, [edi + 0x18]
mov eax, dword [ebp - 0x58]
add ecx, ecx
sub eax, ecx
add edx, ecx
sub eax, 0x18
push eax
push edx
push dword [ebp - 0x54]
call dword [sym.imp.MMFS2.dll_Ordinal_433]
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, 4
add eax, eax
push 1
push eax
call fcn.00462e24
mov ecx, eax
add esp, 8
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x409ec6
mov eax, dword [edi + 0x14]
add eax, eax
push eax
lea eax, [edi + 0x18]
push eax
push ecx
call fcn.004628b0
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00405820
jmp 0x409f3e
mov esi, 0xc3
lea ecx, [ebp - 0x60]
call fcn.00405820
jmp 0x409f3e
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_425]
lea eax, [ebp - 0x44]
push 0x18
push eax
push dword [ebp - 0x4c]
call edi
mov esi, eax
test esi, esi
jne 0x409f3e
mov eax, dword [ebp - 0x30]
push 1
lea eax, [eax*2 + 8]
push eax
call fcn.00462e24
mov ecx, eax
add esp, 8
mov dword [ebp - 0x50], ecx
test ecx, ecx
jne 0x409f11
mov esi, 0xc3
jmp 0x409f3e
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push ecx
push dword [ebp - 0x4c]
call edi
mov esi, eax
test esi, esi
jne 0x409f3e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
add eax, eax
mov edx, dword [ebp - 0x4c]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.0045ac30
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x54]
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
jne 0x409f87
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f53
mov esi, dword [ebp - 0x50]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push esi
push 2
push dword [edi + 0x1c4]
call dword [sym.imp.MMFS2.dll_Ordinal_1069]
movzx edi, ax
test di, di
jne 0x409f95
jmp 0x409f8c
mov esi, dword [ebp - 0x50]
xor edi, edi
push ebx
call fcn.00464120
add esp, 4
test esi, esi
je 0x409fa2
push esi
call fcn.00462e3a
add esp, 4
push ebx
call fcn.00462e3a
mov ecx, dword [ebp - 4]
add esp, 4
mov ax, di
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045f34f
mov esp, ebp
pop ebp
ret