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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2c]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
call fcn.00410fa0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00410ec0
mov esi, dword [ebp + 0x18]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 0x1c]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 0x20]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x2c]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp + 0x24]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp + 0x30]
mov esi, dword [esi + 0x10]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x54]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x34]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0x38]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x3c]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x4c]
mov esi, dword [esi + 0x10]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x50]
mov esi, dword [esi + 0x10]
add edi, esi
add edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add edi, dword [ebp - 0x14]
mov edx, dword [edx + 0x10]
add edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
add edi, dword [ebp - 0x1c]
mov byte [ebp - 0x50], 0x6f
add edi, dword [ebp - 0x20]
mov dword [ebp - 0x4c], 1
add edi, dword [ebp - 0x24]
add edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x30]
add edi, dword [ebx + 0x10]
add edi, dword [ecx + 0x10]
add edi, edx
lea edi, [edi + edi + 0x41]
mov dword [ebp - 0x44], edi
add edi, 0x10
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4119d9
push 0x10
lea eax, [ebp - 0x50]
push eax
push edi
push esi
call fcn.00554202
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
add esp, 0x20
cmp dword [ecx + 0x14], 8
jb 0x411546
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 + 0x10]
push eax
mov dword [ebp + 8], ecx
add ecx, esi
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
add dword [ebp + 8], 4
mov eax, dword [ebx + 0x10]
add esp, 0x20
cmp dword [ebx + 0x14], 8
jb 0x41158e
mov ecx, dword [ebx]
jmp 0x411590
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 + 0x14]
mov eax, dword [edx + 0x10]
lea ebx, [ecx + ebx*2]
push 4
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x4115d6
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 + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x18]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x41161c
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x1c]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x411662
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 + 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x20]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x4116a8
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x24]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x4116ee
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 + 0x24]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x2c]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x411734
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x30]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x41177a
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 + 0x30]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x34]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x4117c0
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x34]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x3c]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x411806
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 + 0x3c]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x38]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x41184c
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x4c]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x411892
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 + 0x4c]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x50]
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [ecx + 0x10]
lea edx, [eax + eax]
push 4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebx + esi]
push edi
push ecx
mov dword [ebp + 0x10], edx
call fcn.00554202
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x4118d8
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebx + esi + 4]
push edi
push eax
call fcn.00554202
mov ecx, dword [ebp + 0x50]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x54]
push 4
lea ebx, [ebx + eax*2 + 4]
mov eax, dword [edx + 0x10]
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebx + esi]
add eax, eax
push edi
push edx
mov dword [ebp + 0x10], eax
call fcn.00554202
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x10]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x41191e
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 + 0x54]
mov eax, dword [eax + 0x10]
push 1
lea ecx, [ebp + 0xc]
push ecx
lea ebx, [ebx + eax*2 + 4]
lea edx, [ebx + esi]
push edi
push edx
call fcn.00554202
push 1
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebx + esi + 1]
push edi
push ecx
call fcn.00554202
push 1
lea edx, [ebp + 0x40]
push edx
lea eax, [ebx + esi + 2]
push edi
push eax
call fcn.00554202
add esp, 0x40
push 1
lea ecx, [ebp + 0x44]
push ecx
lea edx, [ebx + esi + 3]
push edi
push edx
call fcn.00554202
push 1
lea eax, [ebp + 0x48]
push eax
add ebx, 4
push edi
add ebx, esi
push ebx
call fcn.00554202
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x34]
add esp, 0x20
push 0
lea ecx, [ebp - 0x38]
push ecx
add edx, 0x10
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411a09
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 - 0x3c], 0
je 0x4119f4
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x3c], 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 0x50
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
lea ecx, [ebp - 0x38]
push ecx
push 4
lea edx, [ebp - 0x10]
push edx
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 0x411a72
cmp eax, 0xea
je 0x411a4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4119d9
cmp dword [ebp - 0x10], 0x6f
je 0x411a72
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], 0
je 0x4119f4
mov ecx, dword [ebp - 0x40]
push ecx
jmp 0x4119ea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], 0
je 0x411a94
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x3c], 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 0x50