Function at 0x100b441c
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x100c8667
call fcn.100b70a1
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.100b4c2c
xor ebx, ebx
xor ecx, ecx
inc ebx
mov dword [ebp + 8], eax
test eax, eax
js 0x100b4601
lea eax, [edi + eax*2]
cmp word [eax + 2], cx
je 0x100b4601
push eax
lea ecx, [ebp - 0x34]
call fcn.1000259b
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.1000259b
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp ecx, dword [ebp - 0x24]
jae 0x100b447f
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x30]
cmp ecx, 6
jbe 0x100b449e
mov eax, dword [ebp - 0x34]
add ecx, 0xfffffffa
mov edx, 0x100d43b0
lea ecx, [eax + ecx*2]
call fcn.10003666
test al, al
jne 0x100b44ab
push str.:_DATA
lea ecx, [ebp - 0x34]
call fcn.10002a4f
mov ecx, dword [ebp - 0x28]
call fcn.100b4cf7
mov ecx, dword [ebp - 0x28]
test al, al
je 0x100b44f7
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x100b44d0
cmp eax, 3
jne 0x100b44f7
push 0x5c
pop eax
cmp word [ecx + 4], ax
jne 0x100b44f7
mov ecx, esi
call fcn.100b42be
lea ecx, [esi + 0x28]
xor eax, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx]
xor edx, edx
cmp dword [ebp + 8], 2
mov word [eax], dx
jne 0x100b4507
lea eax, [ebp - 0x28]
push eax
call fcn.100026dc
jmp 0x100b4507
push ecx
mov ecx, esi
call fcn.100b441c
test al, al
je 0x100b45ef
and dword [esi + 0x20], 0xfffffbef
or dword [ebp - 0x44], 0xffffffff
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1000256a
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.100025d8
jmp 0x100b4561
cmp byte [ebp + 0xb], 0
je 0x100b45b2
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x5c]
call fcn.100035e7
test al, al
jne 0x100b457b
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10003e82
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.100025d8
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.100b4a06
test al, al
jne 0x100b4537
jmp 0x100b45ba
mov eax, dword [ebp - 0x58]
cmp eax, 7
jbe 0x100b4596
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x100b4596
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x58], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x5c]
lea ecx, [esi + 0x28]
push eax
call fcn.10002a11
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
mov byte [esi + 0x24], bl
jmp 0x100b45be
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov bl, al
push dword [ebp - 0x5c]
call fcn.10003e82
push dword [ebp - 0x40]
call fcn.10003e82
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
call fcn.100b42df
push dword [ebp - 0x28]
call fcn.10003e82
push dword [ebp - 0x34]
call fcn.10003e82
pop ecx
pop ecx
jmp 0x100b47d7
push dword [ebp - 0x28]
call fcn.10003e82
push dword [ebp - 0x34]
call fcn.10003e82
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 5
call fcn.100b480c
test al, al
jne 0x100b47cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 2
je 0x100b4646
cmp eax, 0x35
je 0x100b4646
cmp eax, 0x43
je 0x100b4646
cmp eax, 0x7b
je 0x100b4646
cmp eax, 0xa1
jne 0x100b47cb
mov ecx, edi
call fcn.100b4d4f
push 4
xor ecx, ecx
pop edx
test al, al
movzx eax, word [edi]
cmovne ecx, edx
push 0x5c
pop edx
mov dword [ebp + 8], ecx
cmp ax, dx
je 0x100b466a
cmp eax, 0x2f
jne 0x100b46ac
xor eax, eax
cmp word [edi + 2], ax
jne 0x100b46ac
mov ecx, edi
call fcn.100b49c1
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100b47cb
test al, 0x10
je 0x100b47cb
mov ecx, esi
call fcn.100b42be
xor eax, eax
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], eax
jmp 0x100b47cf
lea eax, [edi + ecx*2]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.100b4d1c
test al, al
je 0x100b4719
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [edi + eax*2 + 6], cx
jne 0x100b4719
mov ecx, edi
call fcn.100b49c1
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100b47cb
test al, 0x10
je 0x100b47cb
mov ecx, esi
call fcn.100b42be
mov eax, dword [ebp + 8]
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
mov dword [esi + 0x20], eax
call fcn.1000273d
push 2
pop eax
cmp dword [esi + 0x2c], eax
jbe 0x100b47cf
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov word [eax + 4], cx
jmp 0x100b47cf
mov ecx, edi
call fcn.100b4c97
test eax, eax
je 0x100b47cb
lea eax, [edi + eax*2]
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp word [eax], cx
je 0x100b47cb
mov ecx, eax
call fcn.100b4c70
test eax, eax
jns 0x100b47cb
push edi
lea ecx, [ebp - 0x40]
call fcn.1000259b
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.10002a96
push 0x2a
lea ecx, [ebp - 0x40]
call fcn.10002a96
push esi
push dword [ebp - 0x40]
xor eax, eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], al
call fcn.100b480c
test al, al
je 0x100b47a0
lea eax, [esi + 0x28]
push 0x100c9788
push dword [eax]
mov dword [ebp + 8], eax
call fcn.100b89e3
pop ecx
pop ecx
test eax, eax
jne 0x100b479d
mov ecx, dword [ebp + 8]
jmp 0x100b47f9
mov byte [ebp + 0xb], bl
mov ecx, edi
call fcn.100b49c1
cmp byte [ebp + 0xb], 0
mov dword [ebp - 0x1c], eax
jne 0x100b47e1
cmp eax, 0xffffffff
je 0x100b47b9
test al, 0x10
jne 0x100b47e1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x40]
call fcn.10003e82
pop ecx
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x10]
call fcn.100b42df
mov al, bl
call fcn.100b706f
ret 4
mov ecx, esi
call fcn.100b42be
cmp dword [ebp - 0x1c], 0xffffffff
push 0x10
pop eax
cmovne eax, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x28]
push dword [ebp - 0x14]
call fcn.1000273d
push dword [ebp - 0x40]
call fcn.10003e82
pop ecx
jmp 0x100b47cf