Function at 0x40dd30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4792c4]
push esi
push edi
mov dword [esp + 0x258], eax
push 0x104
lea eax, [esp + 0x54]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040b010
lea ecx, [esp + 0x50]
push 0x45fff0
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCR71.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40dda2
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
xor ax, ax
pop esi
mov ecx, dword [esp + 0x250]
call fcn.0044370d
add esp, 0x254
ret 0xc
push ebx
push ebp
push edi
call dword [sym.imp.MSVCR71.dll__fileno]
push eax
call dword [sym.imp.MSVCR71.dll__filelength]
mov ebx, eax
push ebx
call sub.MFC71U.DLL_SerializeElements
push edi
push ebx
mov ebp, eax
push 1
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x1c
test eax, eax
je 0x40dddc
push ebx
push ebp
call fcn.0040b0a0
add esp, 8
mov ebp, eax
jmp 0x40dde0
mov ebp, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi + 0x144]
xor edi, edi
cmp eax, edi
je 0x40de0a
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
lea eax, [esp + 0x58]
push eax
mov ecx, esi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
call fcn.0040dac0
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x144]
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.0040dc60
mov edx, dword [esi + 0x144]
add esp, 0xc
xor ebx, ebx
xor ecx, ecx
cmp edx, edi
je 0x40de72
mov eax, dword [esi + 0x148]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x40de72
mov eax, dword [esi + 0x144]
xor ebx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
inc ecx
jmp 0x40de50
mov eax, dword [esi + 0x144]
cmp eax, edi
je 0x40de85
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xbc]
push edx
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHEncrypt::MD5Encrypt_wchar_t_const___wchar_t__const_]
movzx eax, byte [esi + 0x74]
add esp, 8
sub eax, edi
je 0x40df24
dec eax
je 0x40debf
xor ax, ax
jmp 0x40df90
mov edi, dword [esp + 0x268]
lea eax, [edi + 4]
push eax
mov dword [edi], 0x60b0003
mov dword [edi + 0x46], ebp
mov dword [edi + 0x4a], ebx
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetMachineIDEx_wchar_t__const_]
mov ecx, dword [esi + 0x78]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 4
push 0x21
lea edx, [esp + 0x18]
push edx
lea esi, [edi + 0x52]
push esi
mov dword [edi + 0x4e], ecx
call ebx
mov al, byte [esp + 0x270]
mov byte [edi + 0x94], al
call dword [sym.imp.PlatformData.dll_public:_static_class_CGlobalUserInfo____cdecl_CGlobalUserInfo::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.PlatformData.dll_public:_struct_tagGlobalUserData____thiscall_CGlobalUserInfo::GetGlobalUserData_void_]
push 0x21
push esi
add eax, 0x90
push eax
call ebx
mov ax, 0x95
jmp 0x40df90
mov edi, dword [esp + 0x268]
lea ecx, [edi + 4]
push ecx
mov dword [edi], 0x60b0003
mov dword [edi + 0x46], ebp
mov dword [edi + 0x4a], ebx
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetMachineIDEx_wchar_t__const_]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 4
push 0x21
lea edx, [esp + 0x18]
push edx
lea ebx, [edi + 0x4e]
push ebx
call ebp
push 0x20
add esi, 0x7c
push esi
lea eax, [edi + 0x90]
push eax
call ebp
mov cl, byte [esp + 0x270]
mov byte [edi + 0xd0], cl
call dword [sym.imp.PlatformData.dll_public:_static_class_CGlobalUserInfo____cdecl_CGlobalUserInfo::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.PlatformData.dll_public:_struct_tagGlobalUserData____thiscall_CGlobalUserInfo::GetGlobalUserData_void_]
push 0x21
push ebx
add eax, 0x90
push eax
call ebp
mov ax, 0xd1
mov ecx, dword [esp + 0x260]
pop ebp
pop ebx
pop edi
pop esi
call fcn.0044370d
add esp, 0x254
ret 0xc