Function at 0x10022b40
Capabilities:
Check if file exists
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], ebx
push esi
push edi
mov edi, edx
test ebx, ebx
je 0x1002323e
cmp word [ebx], 0
je 0x1002323e
push 4
push 0x1016bda4
push ebx
mov esi, ebx
call fcn.1014bccc
add esp, 0xc
test eax, eax
jne 0x10022b98
lea esi, [ebx + 8]
movzx eax, word [esi]
test ax, ax
je 0x10022bc4
mov ecx, eax
cmp cx, 0x2a
je 0x1002323e
cmp cx, 0x3f
je 0x1002323e
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10022ba2
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x101d1eb4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.100100c0
push 6
push 0
mov dword [esp + 0x18], 0x101d1eb4
mov dword [esp + 0x48], 0
call fcn.1014d427
add esp, 8
test eax, eax
je 0x10022c18
mov dword [esp + 0x10], eax
mov dword [eax], 0x5c
mov dword [esp + 0x40], 1
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x28], 0x101d1eb4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
cmp esi, 1
jg 0x10022c4d
lea eax, [esp + 0x34]
push eax
call fcn.10010220
jmp 0x10022c5b
lea eax, [esi - 1]
push 1
lea eax, [ebx + eax*2]
push eax
call fcn.10010180
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x2c], eax
jne 0x10022cab
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022c96
test dx, dx
je 0x10022c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022c96
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022c70
xor eax, eax
jmp 0x10022c9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10022cab
mov eax, 3
xor ecx, ecx
jmp 0x10022d69
push 6
push 0
mov dword [esp + 0x48], 0x101d1eb4
mov dword [esp + 0x1c], 0
call fcn.1014d427
add esp, 8
test eax, eax
je 0x10022cdd
mov dword [esp + 0x40], eax
mov dword [eax], 0x2f
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 0x101d1eb4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmp esi, 1
jg 0x10022d0a
lea eax, [esp + 0x34]
push eax
call fcn.10010220
jmp 0x10022d18
lea eax, [esi - 1]
push 1
lea eax, [ebx + eax*2]
push eax
call fcn.10010180
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x20], eax
jne 0x10022d78
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022d56
test dx, dx
je 0x10022d52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022d56
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022d30
xor eax, eax
jmp 0x10022d5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10022d78
mov eax, 0xf
mov ecx, 8
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], 1
test ecx, ecx
je 0x10022da1
jmp 0x10022d82
mov byte [esp + 0xf], 0
mov eax, 0xf
and eax, 0xfffffff7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10022da1
cmp eax, 0x101d1eb4
je 0x10022da1
push eax
call fcn.10146720
add esp, 4
test byte [esp + 0x14], 4
je 0x10022dc0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10022dc0
cmp eax, 0x101d1eb4
je 0x10022dc0
push eax
call fcn.10146720
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022dd8
cmp eax, 0x101d1eb4
je 0x10022dd8
push eax
call fcn.10146720
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10022df0
cmp eax, 0x101d1eb4
je 0x10022df0
push eax
call fcn.10146720
add esp, 4
cmp byte [esp + 0xf], 0
je 0x10022e5f
lea ecx, [esi - 1]
mov dword [esp + 0x28], 0x101d1eb4
cmp ecx, esi
mov dword [esp + 0x2c], 0
mov eax, esi
mov dword [esp + 0x30], 0
cmovl eax, ecx
test eax, eax
jns 0x10022e21
xor ecx, ecx
jmp 0x10022e26
cmp ecx, esi
cmovge ecx, esi
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.10010180
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
call fcn.10010220
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022e57
cmp eax, 0x101d1eb4
je 0x10022e57
push eax
call fcn.10146720
add esp, 4
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov dword [esp + 0x10], edx
cmp edx, 0xffffffff
jne 0x1002301d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10022ea6
cmp eax, 3
jne 0x10022fef
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x10022fef
mov eax, 4
mov dword [esp + 0x28], 0x101d1eb4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
cmp esi, eax
jg 0x10022ed0
xor ecx, ecx
mov eax, esi
test esi, esi
cmovs eax, ecx
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.10010180
mov eax, dword [esp + 0x28]
mov ecx, 0x1016bda4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022f10
test dx, dx
je 0x10022f06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022f10
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022ee4
mov dword [esp + 0x10], 0
jmp 0x10022f19
sbb eax, eax
or eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022f31
cmp eax, 0x101d1eb4
je 0x10022f31
push eax
call fcn.10146720
add esp, 4
cmp dword [esp + 0x10], 0
je 0x10022fbb
push 0x1016bda4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x101d1eb4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.100100c0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.1000ff70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.10010220
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10022f9b
cmp eax, 0x101d1eb4
je 0x10022f9b
push eax
call fcn.10146720
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022fb3
cmp eax, 0x101d1eb4
je 0x10022fb3
push eax
call fcn.10146720
add esp, 4
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, ebx
test esi, esi
je 0x10022fd7
mov ecx, 0x5c
cmp word [eax], 0x2f
jne 0x10022fcf
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x10022fc6
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1002301d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7b
jne 0x10023013
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10023013
mov byte [edi + 8], 1
jmp 0x1002320a
mov dword [edi + 0x10], esi
xor al, al
jmp 0x1002320c
mov edx, dword [esp + 0x80]
mov eax, edx
mov ecx, dword [esp + 0xa4]
and eax, 0x400
je 0x10023047
cmp ecx, 0xa000000c
jne 0x10023047
mov byte [esp + 0xf], 1
mov byte [edi + 9], 1
jmp 0x10023054
mov byte [edi + 9], 0
mov byte [esp + 0xf], 0
test eax, eax
je 0x10023060
cmp ecx, 0xa0000003
jne 0x10023060
mov al, 1
jmp 0x10023062
xor al, al
mov byte [edi + 0xa], al
test dl, 0x10
je 0x1002306e
mov byte [edi + 8], 1
cmp byte [esp + 0xf], 0
jne 0x10023083
cmp byte [edi + 8], 0
jne 0x10023083
test al, al
jne 0x10023083
mov byte [edi + 0xc], 1
cmp byte [edi + 0xc], 0
je 0x100230a1
mov ecx, dword [esp + 0x9c]
xor eax, eax
add eax, dword [esp + 0xa0]
mov dword [edi], eax
adc ecx, 0
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
call fcn.100109a0
mov ecx, dword [esp + 0x8c]
mov dword [edi + 0x1c], edx
mov edx, dword [esp + 0x90]
mov dword [edi + 0x18], eax
call fcn.100109a0
mov ecx, dword [esp + 0x94]
mov dword [edi + 0x24], edx
mov edx, dword [esp + 0x98]
mov dword [edi + 0x20], eax
call fcn.100109a0
cmp byte [ebp + 8], 0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
je 0x100231a2
cmp byte [edi + 9], 0
jne 0x10023106
cmp byte [edi + 0xa], 0
je 0x100231a2
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x101d1eb4
mov ecx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.10022710
mov esi, dword [esp + 0x28]
test eax, eax
je 0x1002313d
push esi
call fcn.10147912
add esp, 4
mov dword [edi + 0x3c], eax
cmp byte [edi + 8], 0
jne 0x1002318d
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x1002318d
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov esi, dword [esp + 0x28]
je 0x1002318d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
test esi, esi
je 0x100231a2
cmp esi, 0x101d1eb4
je 0x100231a2
push esi
call fcn.10146720
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x10023200
cmp byte [edi + 8], 0
jne 0x10023200
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10023200
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10023200
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x48], eax
xor eax, eax
add eax, dword [esp + 0x7c]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x68]
adc ecx, 0
push esi
mov dword [edi + 0x54], ecx
mov dword [edi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov byte [esp + 0xf], al
test ebx, ebx
je 0x10023240
cmp ebx, 0x101d1eb4
je 0x10023240
push ebx
call fcn.10146720
mov al, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.10142783
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10142783
mov esp, ebp
pop ebp
ret