Function at 0x402620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4084d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov al, byte [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esi + 8], ecx
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi], 0x409468
mov byte [esi + 4], al
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
call fcn.00402a70
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x40d170]
mov dword [ebp - 4], ebx
push 0x14
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 1
call fcn.00407c70
mov ecx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x4026a4
call fcn.004059a0
mov dword [esi + 0x2c], eax
jmp 0x4026c0
xor eax, eax
mov dword [esi + 0x2c], eax
jmp 0x4026c0
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.00402a90
test eax, eax
jne 0x4026ea
push 0x2bc
call dword [sym.imp.mgcommon.dll_void___cdecl_MessageBoxInitError_int_]
movzx edx, byte [esi + 4]
add esp, 4
mov dword [esi + 0x10], ebx
push edx
jmp 0x4028a6
mov byte [ebp - 4], 4
call dword [sym.imp.mgconfig.dll_public:_static_class_CConfigManager____cdecl_CConfigManager::getConfigManager_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.SweetIMApplicationConfig
mov edi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov ecx, edi
call dword [sym.imp.mgconfig.dll_public:_bool___thiscall_CConfigManager::configExists_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___]
test al, al
jne 0x40278c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.Main.ConfigFiles.SweetIMAppConfigFilePath
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov ecx, edi
mov byte [ebp - 4], 5
call dword [sym.imp.mgconfig.dll_public:_class_CConfig____thiscall_CConfigManager::getDefaultConfig_void_]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call dword [sym.imp.mgconfig.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_CConfig::getPropertyAsStringEx_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___]
sub esp, 0x1c
lea edx, [ebp - 0x30]
mov ecx, esp
mov dword [ebp + 0x10], esp
mov bl, 6
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.SweetIMApplicationConfig
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov ecx, edi
mov byte [ebp - 4], bl
call dword [sym.imp.mgconfig.dll_public:_class_CConfig____thiscall_CConfigManager::createConfig_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor ebx, ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.SweetIMApplicationConfig
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov ecx, edi
call dword [sym.imp.mgconfig.dll_public:_class_CConfig____thiscall_CConfigManager::getConfig_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___]
mov dword [esi + 0x20], eax
jmp 0x4027d1
cmp dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
je 0x402897
push 0x48
mov byte [ebp - 4], 9
call fcn.00407c70
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
cmp edi, ebx
mov byte [ebp - 4], 0xa
je 0x40280b
mov ecx, edi
call dword [sym.imp.mgUpdateSupport.dll_public:_void___thiscall_CUpdateManager::constructor_void_]
mov dword [edi], 0x4093d8
mov dword [esi + 0x24], edi
jmp 0x402827
xor edi, edi
mov dword [esi + 0x24], edi
jmp 0x402827
mov dword [ebp - 4], ebx
push 0x48
mov byte [ebp - 4], 0xc
call fcn.00407c70
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
cmp edi, ebx
mov byte [ebp - 4], 0xd
je 0x402864
mov ecx, edi
call dword [sym.imp.mgUpdateSupport.dll_public:_void___thiscall_CUpdateAgent::constructor_void_]
mov ecx, edi
mov dword [edi], 0x4093d4
mov byte [ebp - 4], 0xc
mov dword [esi + 0x28], ecx
call dword [sym.imp.mgUpdateSupport.dll_public:_void___thiscall_CUpdateAgent::start_void_]
jmp 0x402897
xor ecx, ecx
mov byte [ebp - 4], 0xc
mov dword [esi + 0x28], ecx
call dword [sym.imp.mgUpdateSupport.dll_public:_void___thiscall_CUpdateAgent::start_void_]
jmp 0x402897
movzx ecx, byte [esi + 4]
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 1
push ecx
mov ecx, dword [esi + 0x2c]
push 1
push 1
call fcn.004053b0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc