Function at 0x10003e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x228]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
xor edi, edi
xor ebp, ebp
mov dword [eax], edi
cmp ebx, edi
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 1
mov byte [esp + 0x11], 0
mov dword [esp + 0x18], edi
mov dword [ecx], edi
jne 0x10003ead
cmp esi, edi
je 0x10004053
cmp ebx, edi
mov dword [esp + 0x14], edi
jne 0x10004060
mov edx, dword [esp + 0x230]
push edx
call dword [0x1000d1bc]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathW]
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x230], esi
cmp word [esi], 0x22
mov ebp, esi
jne 0x10003f0b
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov byte [esp + 0x13], 0
mov ecx, esi
je 0x10003f38
cmp ax, 0xff22
je 0x10003f36
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov ebp, esi
jne 0x10003ef5
jmp 0x10003f38
mov ax, word [esi]
mov ecx, dword [esp + 0x230]
test ax, ax
je 0x10003f38
cmp ax, 0xff20
je 0x10003f36
cmp ax, 0xff09
je 0x10003f36
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov ebp, esi
jne 0x10003f1a
jmp 0x10003f38
mov ebp, esi
mov ax, word [ebp]
lea edx, [esp + 0x20]
push 0
push edx
push 0x104
push 0x1000f194
push ecx
push 0
mov word [esp + 0x34], ax
mov word [ebp], 0
call ebx
mov edi, eax
shl edi, 1
je 0x10004022
cmp edi, 0x208
jae 0x10003f8a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003f87
test al, 0x10
jne 0x10004022
add edi, 2
test edi, edi
je 0x10004022
cmp edi, 0x208
jae 0x10004022
mov al, byte [esp + 0x11]
mov cx, word [esp + 0x1c]
test al, al
mov word [ebp], cx
lea ebx, [esp + 0x20]
jne 0x10003fbf
mov al, byte [esp + 0x12]
test al, al
je 0x10004225
mov ecx, dword [esp + 0x230]
push ecx
call dword [0x1000d150]
add esp, 4
lea esi, [eax + eax + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x10004209
mov ecx, esi
shr ecx, 1
cmp ecx, 0x7fffffff
ja 0x100040a0
test ecx, ecx
mov edi, ecx
je 0x100040a0
mov esi, 0x1000f190
mov edx, eax
sub esi, edx
mov dx, word [esi + eax]
test dx, dx
je 0x10004094
mov word [eax], dx
add eax, 2
dec edi
jne 0x1000400e
jmp 0x10004098
mov dx, word [esp + 0x1c]
mov word [ebp], dx
cmp word [esi], 0
je 0x10004048
mov al, byte [esp + 0x13]
test al, al
je 0x10004048
add esi, 2
mov byte [esp + 0x11], 1
mov ebp, esi
jmp 0x10003f0b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
push ebx
call dword [0x1000d1b8]
test eax, eax
je 0x10004053
push ebx
call dword [0x1000d1b4]
test eax, eax
jne 0x10004053
test esi, esi
je 0x10004083
cmp word [esi], ax
jne 0x10004229
mov byte [esp + 0x12], 1
mov dword [esp + 0x230], ebx
jmp 0x10003fbf
test edi, edi
jne 0x1000409b
sub eax, 2
mov word [eax], 0
mov al, byte [esp + 0x11]
test al, al
je 0x100040b7
mov dx, word [ebp]
mov word [ebp], 0
mov word [esp + 0x1c], dx
cmp ecx, 0x7fffffff
ja 0x10004121
mov edi, dword [esp + 0x18]
mov edx, ecx
test ecx, ecx
mov eax, edi
je 0x10004125
cmp word [eax], 0
je 0x100040d9
add eax, 2
dec edx
jne 0x100040cb
jmp 0x10004125
test edx, edx
je 0x10004125
lea eax, [esp + 0x14]
test eax, eax
je 0x100040eb
mov eax, ecx
sub eax, edx
jmp 0x100040ef
mov eax, dword [esp + 0x14]
mov esi, ecx
sub esi, eax
lea eax, [edi + eax*2]
je 0x10004125
mov edi, dword [esp + 0x230]
sub edi, eax
mov dx, word [edi + eax]
test dx, dx
je 0x10004115
mov word [eax], dx
add eax, 2
dec esi
jne 0x10004101
jmp 0x10004119
test esi, esi
jne 0x1000411c
sub eax, 2
mov word [eax], 0
mov edi, dword [esp + 0x18]
cmp ecx, 0x7fffffff
ja 0x1000418d
test ecx, ecx
mov edx, ecx
mov eax, edi
je 0x1000418d
cmp word [eax], 0
je 0x10004143
add eax, 2
dec edx
jne 0x10004135
jmp 0x1000418d
test edx, edx
je 0x1000418d
lea eax, [esp + 0x14]
test eax, eax
je 0x10004155
mov eax, ecx
sub eax, edx
jmp 0x10004159
mov eax, dword [esp + 0x14]
mov esi, ecx
sub esi, eax
lea eax, [edi + eax*2]
je 0x1000418d
mov edi, 0x1000f190
sub edi, eax
mov dx, word [edi + eax]
test dx, dx
je 0x1000417d
mov word [eax], dx
add eax, 2
dec esi
jne 0x10004169
jmp 0x10004181
test esi, esi
jne 0x10004184
sub eax, 2
mov edi, dword [esp + 0x18]
mov word [eax], 0
mov al, byte [esp + 0x11]
test al, al
je 0x10004229
mov dx, word [esp + 0x1c]
cmp ecx, 0x7fffffff
mov word [ebp], dx
ja 0x10004229
test ecx, ecx
mov edx, ecx
mov eax, edi
je 0x10004229
cmp word [eax], 0
je 0x100041c0
add eax, 2
dec edx
jne 0x100041b2
jmp 0x10004229
test edx, edx
je 0x10004229
lea eax, [esp + 0x14]
test eax, eax
je 0x100041d2
mov eax, ecx
sub eax, edx
jmp 0x100041d6
mov eax, dword [esp + 0x14]
sub ecx, eax
lea eax, [edi + eax*2]
je 0x10004229
sub ebp, eax
mov dx, word [eax + ebp]
test dx, dx
je 0x100041fb
mov word [eax], dx
add eax, 2
dec ecx
jne 0x100041df
sub eax, 2
mov word [eax], 0
jmp 0x10004229
test ecx, ecx
jne 0x10004202
sub eax, 2
mov word [eax], 0
jmp 0x10004229
mov al, byte [esp + 0x11]
test al, al
je 0x10004216
mov byte [esp + 0x11], 0
mov al, byte [esp + 0x12]
test al, al
je 0x10004229
mov byte [esp + 0x12], 0
jmp 0x10004229
mov edi, dword [esp + 0x18]
mov esi, dword [0x1000d1bc]
push ebx
call esi
mov ecx, dword [esp + 0x234]
mov dword [ecx], eax
mov al, byte [esp + 0x11]
test al, al
jne 0x10004252
mov al, byte [esp + 0x12]
test al, al
mov eax, dword [esp + 0x230]
je 0x10004254
mov eax, edi
push eax
call esi
mov edx, dword [esp + 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004271
push eax
call esi
test edi, edi
je 0x10004278
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret