Function at 0x411130
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2c]
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call fcn.00410fa0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00410ec0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi + 0x10]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x10]
add ecx, esi
add ecx, eax
add ecx, edx
lea eax, [ecx + ecx + 0x10]
lea edi, [eax + 0x10]
push edi
push 8
mov byte [ebp - 0x30], 0x6f
mov dword [ebp - 0x2c], 0xe
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41132b
push 0x10
lea edx, [ebp - 0x30]
push edx
push edi
push esi
call fcn.00554202
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push 4
lea edx, [ebp + 0xc]
push edx
lea ecx, [eax + eax]
lea eax, [esi + 0x10]
push edi
push eax
mov dword [ebp + 0xc], ecx
call fcn.00554202
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
add esp, 0x20
cmp dword [ecx + 0x14], 8
jb 0x4111fa
mov ecx, dword [ecx]
lea edx, [eax + eax]
push edx
push ecx
lea eax, [esi + 0x14]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
lea ecx, [eax + eax + 0x14]
mov eax, dword [ebx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 8], ecx
add ecx, esi
push edi
push ecx
mov dword [ebp + 0xc], edx
call fcn.00554202
add dword [ebp + 8], 4
mov eax, dword [ebx + 0x10]
add esp, 0x20
cmp dword [ebx + 0x14], 8
jb 0x411242
mov ecx, dword [ebx]
jmp 0x411244
mov ecx, ebx
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
push edx
push ecx
add eax, esi
push edi
push eax
call fcn.00554202
mov ebx, dword [ebx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
lea ebx, [ecx + ebx*2]
push 4
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0xc], eax
call fcn.00554202
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x41128a
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
lea edx, [ebx + esi + 4]
push edi
push edx
call fcn.00554202
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x14]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0xc], edx
call fcn.00554202
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
add esp, 0x20
add ebx, 4
cmp dword [eax + 0x14], 8
jb 0x4112d3
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push edi
add ebx, esi
push ebx
call fcn.00554202
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
add esp, 0x10
push 0
lea eax, [ebp - 0x18]
push eax
add ecx, 0x10
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41135b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_SH_SET_OPTIONS_to_the_server:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x411346
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x1c], 0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4113c4
cmp eax, 0xea
je 0x4113a1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41132b
cmp dword [ebp - 0x10], 0x6f
je 0x4113c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x411346
mov eax, dword [ebp - 0x20]
push eax
jmp 0x41133c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x4113e6
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10