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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10084a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
push 0x1c
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push fcn.10004900
mov dword [esp + 0x20], edi
mov dword [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [esp + 0x34]
je 0x10054707
push 0x104
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x4c]
push 0x5c
push edx
call fcn.10067868
xor esi, esi
add esp, 8
cmp eax, esi
je 0x10054707
mov ecx, str.config.ini
lea edx, [eax + 2]
sub edx, ecx
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, si
jne 0x100546b0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10054707
shr eax, 4
not eax
and eax, 1
je 0x10054707
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x26c], esi
call fcn.10054410
test eax, eax
jne 0x1005470b
lea esi, [esp + 0x20]
call fcn.10003770
xor eax, eax
jmp 0x10054757
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
mov esi, 1
add ebx, edx
mov dword [esp + 0x18], esi
cmp ebx, esi
ja 0x10054784
cmp dword [esp + 0x20], 0
je 0x10054752
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, esi
call fcn.10003c60
push esi
call fcn.10066b10
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x10054842
cmp ebx, esi
jbe 0x1005485f
mov eax, dword [esp + 0x20]
xor edx, edx
add eax, 0x1c
push edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
call fcn.10003850
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
mov dword [esp + 0x28], 0x3d
call fcn.100109a0
cmp eax, 0xffffffff
jne 0x100547f9
cmp dword [esp + 0x44], 8
mov dword [edi + 0x10], esi
jb 0x10054830
mov edx, dword [esp + 0x30]
push edx
call fcn.10066b10
add esp, 4
jmp 0x10054830
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov ecx, edi
cmp esi, 8
jae 0x1005480c
lea ecx, [esp + 0x30]
xor edx, edx
cmp word [ecx + eax*2 + 2], 0x66
mov eax, dword [esp + 0x14]
setne dl
mov dword [eax + 0x10], edx
cmp esi, 8
jb 0x1005482c
push edi
call fcn.10066b10
add esp, 4
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, ebx
jb 0x10054780
jmp 0x10054733
cmp esi, 2
jle 0x10054830
mov edi, esi
lea eax, [esp + 0x20]
call fcn.100037a0
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.10009c00
jmp 0x10054830
push str.invalid_vector_T__subscript
call fcn.1005f003
int3