Function at 0x10030c20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x52c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x528], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x10031119
push 0x206
lea eax, [esp + 0x22a]
push ebp
push eax
mov word [esp + 0x230], bp
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x2e]
push ebp
push ecx
mov word [esp + 0x34], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
mov eax, 0x104
mov ecx, esi
lea edx, [esp + 0x224]
call fcn.100040e0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x10030c90
lea eax, [esp + 0x224]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030cb0
sub eax, edx
sar eax, 1
cmp eax, 7
push ebx
mov ebx, 0x5c
jbe 0x10030dc5
lea eax, [esp + 0x228]
lea edx, [eax + 2]
jmp 0x10030ce0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030ce0
sub eax, edx
sar eax, 1
lea esi, [esp + eax*2 + 0x220]
mov ecx, str..adi
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10030d26
cmp dx, bp
je 0x10030d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10030d26
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x10030d00
xor eax, eax
jmp 0x10030d2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x10030d65
mov ecx, str..afi
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10030d5c
cmp dx, bp
je 0x10030d58
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10030d5c
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x10030d36
xor eax, eax
jmp 0x10030d61
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x10030dc5
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030d70
sub eax, edx
sar eax, 1
add eax, 0xffffffff
cmp eax, ebp
jl 0x10030d9b
movzx ecx, word [esp + eax*2 + 0x20]
cmp cx, bx
je 0x10030d9b
cmp cx, 0x2f
je 0x10030d9b
sub eax, 1
jns 0x10030d86
mov word [esp + eax*2 + 0x22], bp
xor eax, eax
jmp 0x10030db0
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bp
jne 0x10030db0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x10031117
cmp word [esp + 0x22c], bx
jne 0x10030fd9
cmp word [esp + 0x22e], bx
jne 0x10030fd9
lea eax, [esp + 0x22c]
mov ebx, 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030e07
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [esp + 0x230]
push 0x5c
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x10030f26
lea esp, [esp]
mov ebx, esi
lea ecx, [esp + 0x22c]
sub ebx, ecx
sar ebx, 1
add ebx, 1
cmp ebx, edi
jg 0x10030f26
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
push edx
mov eax, ecx
push eax
mov word [esi], bp
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10030f04
push 0x103
push eax
lea ecx, [esp + 0x43d]
push ecx
mov byte [esp + 0x440], al
call sub.MSVCR80.dll_memset
push 0x104
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x448]
push eax
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0x18
call sub.Comn.dll_GetObjectLog
lea ecx, [esp + 0x434]
mov ebp, eax
mov eax, dword [ebp]
push ecx
push 0x100
mov edi, str..UiRecord.cpp
mov dword [esp + 0x24], eax
call fcn.1002f7d0
add esp, 4
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
push 0x1014f9c8
push ebp
call edx
mov edi, dword [esp + 0x30]
add esp, 0x10
xor ebp, ebp
lea eax, [esp + ebx*2 + 0x22c]
push 0x5c
push eax
mov word [esi], 0x5c
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x10030e40
add ebx, 1
cmp ebx, edi
jge 0x10031117
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x230]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10031117
push 0x103
mov byte [esp + 0x438], al
lea eax, [esp + 0x439]
push ebp
push eax
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x448]
push edx
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0x18
call sub.Comn.dll_GetObjectLog
mov esi, eax
mov ebx, dword [esi]
lea eax, [esp + 0x434]
push eax
push 0x112
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
mov ecx, dword [ebx + 0xc]
add esp, 4
push eax
push 0x1014f9c8
push esi
call ecx
add esp, 0x10
jmp 0x10031117
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030fe0
sub eax, edx
sar eax, 1
mov esi, eax
sub esi, 1
js 0x1003101f
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x1003101f
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, bx
je 0x10031130
cmp ax, 0x2f
je 0x10031130
sub esi, 1
jns 0x10031002
lea eax, [esp + 0x24]
push eax
call edi
cmp eax, 0xffffffff
je 0x10031117
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, 0xc
lea ebx, [ebx]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10031052
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x22c]
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10031070
sub eax, edi
sar eax, 1
cmp edx, eax
jae 0x10031117
xor eax, eax
xor edx, edx
jmp 0x10031090
movzx ecx, word [esp + eax + 0x22c]
mov word [esp + eax + 0x24], cx
add eax, 2
cmp cx, dx
jne 0x10031090
add esi, 1
cmp esi, 0x104
jge 0x100310d1
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, 0x5c
je 0x100310d1
cmp ax, 0x2f
je 0x100310d1
cmp ax, dx
je 0x100310d1
add esi, 1
cmp esi, 0x104
jl 0x100310b0
cmp word [esp + esi*2 + 0x24], dx
je 0x10031117
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + esi*2 + 0x24], dx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x18], ebp
call ebx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10031040
pop edi
pop ebx
mov ecx, dword [esp + 0x530]
pop esi
pop ebp
xor ecx, esp
call fcn.1012d370
add esp, 0x52c
ret
cmp esi, ebp
jl 0x1003101f
mov word [esp + esi*2 + 0x24], bp
jmp 0x10030ff6