Function at 0x41b950
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d9036
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x4fb164]
xor eax, esp
mov dword [esp + 0x55c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fb164]
xor eax, esp
push eax
lea eax, [esp + 0x574]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x584]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004a39cd
add esp, 4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x30]
mov dword [0x5419dc], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x541a08], eax
xor ebx, ebx
mov eax, 0x541780
mov edx, str.GatewayServer
xor edi, edi
mov dword [0x541778], ebx
mov dword [0x54177c], ebp
mov esi, 0x40
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, bl
je 0x41b9f5
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x41b9e2
jmp 0x41b9f9
cmp esi, ebx
jne 0x41ba01
sub eax, 1
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
je 0x41ba14
call fcn.0046e510
or eax, 0xffffffff
jmp 0x41bd86
mov edx, dword [esp + 0x588]
mov eax, 0x5417c0
xor edi, edi
mov esi, 0x104
sub edx, eax
lea esp, [esp]
mov cl, byte [edx + eax]
cmp cl, bl
je 0x41ba43
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x41ba30
jmp 0x41ba47
cmp esi, ebx
jne 0x41ba4f
sub eax, 1
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
jne 0x41ba07
push str.Global_
lea ecx, [esp + 0x44]
call fcn.00402750
mov dword [esp + 0x57c], ebx
mov eax, str.GatewayServer
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41ba72
sub eax, edx
push eax
push str.GatewayServer
lea eax, [esp + 0x48]
call fcn.0041ce10
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x41ba9b
lea eax, [esp + 0x44]
lea esi, [esp + 0x14]
call fcn.00458090
mov byte [esp + 0x57c], 1
mov ecx, esi
call fcn.004580f0
test eax, eax
jne 0x41bafd
push str.cannot_create_semaphore_:_module_already_executing
call fcn.0046cfd0
push str.cannot_create_semaphore_:_module_already_executing
mov esi, str.GatewayServer
call fcn.0041b870
add esp, 8
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
or ebp, 0xffffffff
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
mov eax, ebp
jmp 0x41bd86
push 0x104
lea edx, [esp + 0x268]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x36c]
push eax
push 0x104
lea ecx, [esp + 0x478]
push ecx
push 0x104
lea edx, [esp + 0x70]
push edx
push 0x104
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x284]
push ecx
call fcn.004a39fc
lea eax, [esp + 0x80]
add esp, 0x24
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41bb60
sub eax, edx
mov byte [esp + eax + 0x5b], bl
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x164]
push eax
push str._s_s
mov eax, 0x104
mov edi, 0x5418c4
call fcn.0040a3a0
add esp, 0xc
test eax, eax
je 0x41bba1
call fcn.0046e510
jmp 0x41bad3
or ebp, 0xffffffff
push str.ServerFrameworkRes.dll
mov dword [0x541a0c], 0x112
mov dword [0x541a10], 0x201
mov dword [0x541a1c], ebx
mov dword [0x541a24], ebp
mov dword [0x541a28], ebx
mov dword [0x541a2c], ebx
mov dword [0x541a30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4ffdf8], eax
jne 0x41bc2d
push str.cannot_load_ServerFrameworkRes.dll
call fcn.0046cfd0
push str.cannot_load_ServerFrameworkRes.dll
mov esi, str.GatewayServer
call fcn.0041b870
add esp, 8
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
mov eax, ebp
jmp 0x41bd86
call fcn.0041c080
test al, al
jne 0x41bc7e
push str.GatewayServer
push str.cant_find_server.cfg_or_failed_to_parse_server_config_block___s_
call fcn.0046cfd0
push str.paring_config_error
mov esi, str.GatewayServer
call fcn.0041b870
add esp, 0xc
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
mov eax, ebp
jmp 0x41bd86
mov eax, 0x5419e0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41bc86
sub eax, edx
jne 0x41bce7
mov esi, str.Certification
mov edi, str.GatewayServer
call fcn.0041dcf0
test eax, eax
je 0x41bce7
push edi
push str.there_is_no_assigned_ip_for_certifying_server___s_
call fcn.0046cfd0
push str.certification_ip_is_void
mov esi, edi
call fcn.0041b870
add esp, 0xc
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
mov eax, ebp
jmp 0x41bd86
push 0x5419c8
mov eax, 0x5419cc
call fcn.0041bdf0
add esp, 4
test al, al
jne 0x41bd3d
push str.failed_to_identify_public_ip_of_this_machine
call fcn.0046cfd0
push str.cannot_identity_machine_public_ip
mov esi, str.GatewayServer
call fcn.0041b870
add esp, 8
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
mov eax, ebp
jmp 0x41bd86
call fcn.00458840
mov ecx, dword [0x541a10]
mov eax, dword [0x541a0c]
call fcn.0046dd70
call fcn.00456810
mov ecx, dword [0x4ffdf8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x57c], bl
lea esi, [esp + 0x14]
call fcn.004580d0
mov dword [esp + 0x57c], ebp
lea ecx, [esp + 0x40]
call fcn.00402ed0
xor eax, eax
mov ecx, dword [esp + 0x574]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.004a2094
add esp, 0x56c
ret