Function at 0x10040590
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x100e3c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
push str._1__audio.ini
lea eax, [esp + 0xf8]
push eax
call fcn.10010410
mov dword [esp + 0x1f8], 0
mov ecx, dword [0x1019eca8]
mov ecx, dword [ecx + 0x18]
add ecx, 0xd8
push ecx
call fcn.10014840
add esp, 4
mov ecx, eax
lea esi, [esp + 0x19c]
call fcn.10010520
lea edx, [esp + 0xf4]
push edx
mov byte [esp + 0x1fc], 2
call fcn.10004f10
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, esi
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.1000a7c0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x204], 3
call fcn.100ac070
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x10040676
cmp eax, 1
je 0x10040676
mov eax, 1
jmp 0x10040678
xor eax, eax
test al, al
mov esi, 8
sete bl
mov byte [esp + 0x1f8], 2
cmp dword [esp + 0x30], esi
jb 0x1004069d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100c14d4
add esp, 4
test bl, bl
je 0x10040730
mov eax, dword [esp + 0x1a0]
cmp dword [esp + 0x1b4], esi
jae 0x100406bc
lea eax, [esp + 0x1a0]
push 2
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.100096f0
lea eax, [esp + 0x70]
mov byte [esp + 0x1f8], 4
call fcn.1000ab00
test eax, eax
jne 0x10040701
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x6c]
lea ecx, [esp + ecx + 0x64]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x100406f9
or eax, 4
push 0
push eax
call fcn.100021d0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1f8], 2
call fcn.100097d0
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.100af7db
add esp, 4
push 1
push 1
lea edx, [esp + 0x40]
push edx
call fcn.10050e80
mov ebx, 5
mov byte [esp + 0x1f8], bl
mov eax, dword [esp + 0x1a0]
cmp dword [esp + 0x1b4], esi
jae 0x10040761
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x38]
push ecx
call fcn.10050fa0
test eax, eax
jne 0x100408cd
lea edi, [esp + 0x14]
call fcn.10010540
mov edx, dword [0x1019eca8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x30]
mov edi, 0x10
cmp dword [eax + 0x34], edi
jb 0x10040797
mov eax, dword [eax + 0x20]
jmp 0x1004079a
add eax, 0x20
mov edx, eax
lea eax, [esp + 0x14]
call fcn.10010580
mov eax, dword [esp + 0x14]
not eax
lea ecx, [esp + 0x14]
lea esi, [esp + 0x1b8]
mov dword [esp + 0x14], eax
call fcn.10051af0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov byte [esp + 0x1fc], 6
call fcn.10020ac0
mov esi, 8
mov byte [esp + 0x1f8], 7
cmp dword [eax + 0x18], esi
jb 0x100407ea
mov eax, dword [eax + 4]
jmp 0x100407ed
add eax, 4
push 1
push 0
push eax
push str.Connection
push str.settings
lea edx, [esp + 0x4c]
push edx
call fcn.100510e0
cmp dword [esp + 0x30], esi
jb 0x10040819
mov eax, dword [esp + 0x1c]
push eax
call fcn.100c14d4
add esp, 4
xor ecx, ecx
mov byte [esp + 0x1f8], bl
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0x1d0], edi
jb 0x10040850
mov edx, dword [esp + 0x1bc]
push edx
call fcn.100c14d4
add esp, 4
mov eax, dword [esp + 0x1a0]
cmp dword [esp + 0x1b4], esi
jae 0x10040867
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x38]
push ecx
call fcn.10051000
lea edx, [esp + 0x34]
push edx
push 0x40
push ebx
push 0x53e52b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x32
lea eax, [esp + 0x1bc]
push 0x90
push eax
call fcn.100c44c0
mov ecx, 0x100364b0
add esp, 0xc
sub ecx, 0x53e530
mov dword [esp + 0x1b9], ecx
mov cl, byte [esp + 0x1bc]
mov byte [esp + 0x1b8], 0xe9
mov edx, dword [esp + 0x1b8]
mov eax, 0x53e52b
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x1fc], 2
call fcn.10050f10
cmp dword [esp + 0x1b4], esi
jb 0x100408f8
mov eax, dword [esp + 0x1a0]
push eax
call fcn.100c14d4
add esp, 4
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.100bfcbc
add esp, 0x1ec
ret