Function at 0x41d280
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d322b
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0x558]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x568]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0049e2e5
add esp, 4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x30]
mov dword [0x53b664], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x53b690], eax
xor ebx, ebx
mov eax, 0x53b408
mov edx, str.GatewayServer
xor edi, edi
mov dword [0x53b400], ebx
mov dword [0x53b404], ebp
mov esi, 0x100
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, bl
je 0x41d325
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x41d312
jmp 0x41d329
cmp esi, ebx
jne 0x41d331
sub eax, 1
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
je 0x41d344
call fcn.00475a10
or eax, 0xffffffff
jmp 0x41d602
mov edx, dword [esp + 0x56c]
mov eax, 0x53b448
xor edi, edi
mov esi, 0x104
sub edx, eax
lea esp, [esp]
mov cl, byte [edx + eax]
cmp cl, bl
je 0x41d373
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x41d360
jmp 0x41d377
cmp esi, ebx
jne 0x41d37f
sub eax, 1
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
jne 0x41d337
lea esi, [esp + 0x14]
call fcn.00452f20
mov dword [esp + 0x560], ebx
mov ecx, esi
call fcn.00452f80
test eax, eax
jne 0x41d3d6
push str.cannot_create_semaphore_:_module_already_executing
call fcn.00474870
push str.cannot_create_semaphore_:_module_already_executing
mov esi, str.GatewayServer
call fcn.0041d1a0
add esp, 8
or edi, 0xffffffff
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
mov eax, edi
jmp 0x41d602
push 0x104
lea edx, [esp + 0x24c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x350]
push eax
push 0x104
lea ecx, [esp + 0x45c]
push ecx
push 0x104
lea edx, [esp + 0x54]
push edx
push 0x104
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x268]
push ecx
call fcn.0049e7e9
lea eax, [esp + 0x64]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41d432
sub eax, edx
mov byte [esp + eax + 0x3f], bl
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x148]
push eax
push str._s_s
mov eax, 0x104
mov edi, 0x53b54c
call fcn.0040c950
add esp, 0xc
test eax, eax
je 0x41d473
call fcn.00475a10
jmp 0x41d3bc
or edi, 0xffffffff
push str.ServerFrameworkRes.dll
mov dword [0x53b694], 0x112
mov dword [0x53b698], 0x201
mov dword [0x53b6a4], ebx
mov dword [0x53b6ac], edi
mov dword [0x53b6b0], ebx
mov dword [0x53b6b4], ebx
mov dword [0x53b6b8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4f9ca0], eax
jne 0x41d4ef
push str.cannot_load_ServerFrameworkRes.dll
call fcn.00474870
push str.cannot_load_ServerFrameworkRes.dll
mov esi, str.GatewayServer
call fcn.0041d1a0
add esp, 8
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
mov eax, edi
jmp 0x41d602
call fcn.0041d910
test al, al
jne 0x41d530
push str.GatewayServer
push str.cant_find_server.cfg_or_failed_to_parse_server_config_block___s_
call fcn.00474870
push str.paring_config_error
mov esi, str.GatewayServer
call fcn.0041d1a0
add esp, 0xc
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
mov eax, edi
jmp 0x41d602
mov eax, 0x53b668
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41d538
sub eax, edx
jne 0x41d583
call fcn.0041f460
test eax, eax
je 0x41d583
push str.GatewayServer
push str.there_is_no_assigned_ip_for_certifying_server___s_
call fcn.00474870
push str.certification_ip_is_void
mov esi, str.GatewayServer
call fcn.0041d1a0
add esp, 0xc
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
mov eax, edi
jmp 0x41d602
push 0x53b650
mov eax, 0x53b654
call fcn.0041d670
add esp, 4
test al, al
jne 0x41d5c9
push str.failed_to_identify_public_ip_of_this_machine
call fcn.00474870
push str.cannot_identity_machine_public_ip
mov esi, str.GatewayServer
call fcn.0041d1a0
add esp, 8
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
mov eax, edi
jmp 0x41d602
call fcn.00453530
mov ecx, dword [0x53b698]
mov eax, dword [0x53b694]
call fcn.004755f0
call fcn.00453630
mov ecx, dword [0x4f9ca0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x560], edi
lea esi, [esp + 0x14]
call fcn.00452f60
xor eax, eax
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x550
ret