Function at 0x409d40
Capabilities:
Get hostname
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421173
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x42b730]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov byte [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x43], ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov word [ebp - 0x27], cx
mov dword [ebp - 0x54], 0x1f
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x409e1e
push 0x422ef4
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0x4c], 1
jmp 0x40a0a1
push 0x1069
push 0x422ef8
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x54]
lea eax, [ebp + edx - 0x44]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x14]
cmp edx, 1
jbe 0x409e7f
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax - 0x46]
mov dword [ebp - 0x50], ecx
jmp 0x409e8c
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx - 0x45]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea edx, [ebp - 0x44]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call fcn.0040ff30
add esp, 4
lea ecx, [ebp - 0x44]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x409fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
push edx
push str.CRCSET.OFM.GLE_d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.0040fd80
add esp, 4
push 0x422f10
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x44]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x409fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
push str.CRCSET.OFM.GLE2_d
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.0040fd80
add esp, 4
push 0x422f28
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0x4c], 1
jmp 0x40a0a1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40a005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
push str.CRCSET.MVO.GLE_d
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.0040fd80
add esp, 4
push 0x422f40
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0x4c], 1
jmp 0x40a0a1
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x50]
xor ecx, dword [eax + 4]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
xor edx, 0x3a19db5
xor edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
cmp dword [eax], edx
je 0x40a040
push 0x422f44
call fcn.0040fd80
add esp, 4
mov dword [ebp - 0x4c], 1
jmp 0x40a0a1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x50]
xor edx, dword [ecx + 8]
xor edx, dword [ebp - 0x48]
sub edx, 0xea6cff2
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 1
jne 0x40a070
cmp dword [0x42b990], 0
jne 0x40a06e
mov dword [0x42b990], 1
jmp 0x40a094
cmp dword [ebp - 0x64], 2
jne 0x40a08b
cmp dword [0x42b990], 0
je 0x40a089
mov dword [0x42b990], 0
jmp 0x40a094
mov dword [ebp - 0x4c], 1
jmp 0x40a0a1
cmp dword [ebp - 0x64], 1
jne 0x40a0a1
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 0x5c], 0
je 0x40a0b8
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x60], 0
je 0x40a0cf
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x4c], 0
je 0x40a0e2
push str.9041
call fcn.004100f0
add esp, 4
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041fff8
mov esp, ebp
pop ebp
ret