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

Disassembly:
sub esp, 0x52c
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x528], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x100308b9
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.10004030
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 0x10030430
lea eax, [esp + 0x224]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030450
sub eax, edx
sar eax, 1
cmp eax, 7
push ebx
mov ebx, 0x5c
jbe 0x10030565
lea eax, [esp + 0x228]
lea edx, [eax + 2]
jmp 0x10030480
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030480
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 0x100304c6
cmp dx, bp
je 0x100304c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100304c6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x100304a0
xor eax, eax
jmp 0x100304cb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x10030505
mov ecx, str..afi
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100304fc
cmp dx, bp
je 0x100304f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100304fc
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x100304d6
xor eax, eax
jmp 0x10030501
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x10030565
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030510
sub eax, edx
sar eax, 1
add eax, 0xffffffff
cmp eax, ebp
jl 0x1003053b
movzx ecx, word [esp + eax*2 + 0x20]
cmp cx, bx
je 0x1003053b
cmp cx, 0x2f
je 0x1003053b
sub eax, 1
jns 0x10030526
mov word [esp + eax*2 + 0x22], bp
xor eax, eax
jmp 0x10030550
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bp
jne 0x10030550
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x100308b7
cmp word [esp + 0x22c], bx
jne 0x10030779
cmp word [esp + 0x22e], bx
jne 0x10030779
lea eax, [esp + 0x22c]
mov ebx, 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100305a7
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 0x100306c6
lea esp, [esp]
mov ebx, esi
lea ecx, [esp + 0x22c]
sub ebx, ecx
sar ebx, 1
add ebx, 1
cmp ebx, edi
jg 0x100306c6
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 0x100306a4
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 0x101
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
mov dword [esp + 0x24], eax
call fcn.1002ef80
add esp, 4
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
push str._s:__s
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 0x100305e0
add ebx, 1
cmp ebx, edi
jge 0x100308b7
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 0x100308b7
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 0x113
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
mov ecx, dword [ebx + 0xc]
add esp, 4
push eax
push str._s:__s
push esi
call ecx
add esp, 0x10
jmp 0x100308b7
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030780
sub eax, edx
sar eax, 1
mov esi, eax
sub esi, 1
js 0x100307bf
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 0xffffffff
jne 0x100307bf
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, bx
je 0x100308d0
cmp ax, 0x2f
je 0x100308d0
sub esi, 1
jns 0x100307a2
lea eax, [esp + 0x24]
push eax
call edi
cmp eax, 0xffffffff
je 0x100308b7
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 0x100307f2
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 0x10030810
sub eax, edi
sar eax, 1
cmp edx, eax
jae 0x100308b7
xor eax, eax
xor edx, edx
jmp 0x10030830
movzx ecx, word [esp + eax + 0x22c]
mov word [esp + eax + 0x24], cx
add eax, 2
cmp cx, dx
jne 0x10030830
add esi, 1
cmp esi, 0x104
jge 0x10030871
movzx eax, word [esp + esi*2 + 0x24]
cmp ax, 0x5c
je 0x10030871
cmp ax, 0x2f
je 0x10030871
cmp ax, dx
je 0x10030871
add esi, 1
cmp esi, 0x104
jl 0x10030850
cmp word [esp + esi*2 + 0x24], dx
je 0x100308b7
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 0x100307e0
pop edi
pop ebx
mov ecx, dword [esp + 0x530]
pop esi
pop ebp
xor ecx, esp
call fcn.1010dc50
add esp, 0x52c
ret
cmp esi, ebp
jl 0x100307bf
mov word [esp + esi*2 + 0x24], bp
jmp 0x10030796