Function at 0x1004c5b0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019480c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101feda4]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x134], esi
cmp eax, ebx
jne 0x1004c5f6
call fcn.10006d40
lea edx, [ebp - 0xd4]
mov ecx, eax
call fcn.10062400
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc4], ebx
jne 0x1004c62d
cmp dword [ebp - 0xc0], 8
jb 0x1004d573
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jmp 0x1004d570
push 1
mov eax, 0x101a37bc
lea ecx, [ebp - 0xd4]
call fcn.1000fa50
push ebx
lea ecx, [ebp - 0xb8]
push esi
push ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x154], eax
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004d527
cmp eax, ebx
je 0x1004d527
cmp dword [ebp - 0xa4], 8
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x130], ebx
jae 0x1004c692
lea eax, [ebp - 0xb8]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x1004c72f
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], edi
jb 0x1004c6d4
mov eax, dword [eax]
push eax
push str.OpenFile_failed__FilePath___s
lea esi, [ebp - 0x48]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x1004c6f0
mov eax, dword [eax]
push str.CONTACT_IMPORT_TASK
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
lea ecx, [ebp - 0x48]
call fcn.1000c240
lea ecx, [ebp - 0x80]
call fcn.1000c240
lea esi, [ebp - 0xb8]
call fcn.1000ba80
lea esi, [ebp - 0xd4]
call fcn.1000ba80
jmp 0x1004d573
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x118], eax
call fcn.10124806
mov ecx, dword [ebp - 0x118]
add esp, 4
push ecx
mov esi, eax
push ebx
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x118]
add esp, 0xc
push ebx
lea edx, [ebp - 0x168]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x118]
cmp dword [ebp - 0x168], ecx
jne 0x1004c714
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x118], ebx
call fcn.1000c200
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x120]
call fcn.10041d30
push ebx
lea edx, [ebp - 0x12c]
mov byte [ebp - 4], 5
push edx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
call fcn.1004dd50
push 0x2c
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x1004c7f7
push eax
call fcn.1004e710
jmp 0x1004c7f9
xor eax, eax
push eax
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
call fcn.1004df60
mov byte [ebp - 4], 8
xor esi, esi
mov byte [ebp - 0x10d], bl
mov dword [ebp - 0x114], esi
push 1
push esi
push 0x101a8aa0
lea ecx, [ebp - 0xf0]
call fcn.1003ae50
mov dword [ebp - 0x148], eax
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.10025fb0
push 0xb
push ebx
push str.BEGIN:VCARD
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1004c941
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x1004c892
push eax
call fcn.1004e630
jmp 0x1004c894
xor eax, eax
push eax
lea edx, [ebp - 0x178]
mov byte [ebp - 4], 9
push edx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
call fcn.1004dd50
lea eax, [ebp - 0x178]
lea edi, [ebp - 0x12c]
mov byte [ebp - 4], 0xb
call fcn.1000f990
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 9
call fcn.100089e0
push 0xd8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x1004c8f9
push eax
call fcn.10044d40
jmp 0x1004c8fb
xor eax, eax
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
call fcn.10041c90
lea eax, [ebp - 0x170]
lea edi, [ebp - 0x120]
mov byte [ebp - 4], 0xd
call fcn.1000f990
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 9
call fcn.100089e0
jmp 0x1004d4f1
push 9
push ebx
push str.END:VCARD
lea ecx, [ebp - 0x2c]
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1004ce16
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x120]
mov esi, dword [edi + 0xa4]
cmp esi, dword [edi + 0xa8]
je 0x1004c9fc
cmp esi, dword [edi + 0xa4]
jne 0x1004c9a6
mov eax, dword [esi]
push 0xffffffffffffffff
push ebx
add eax, 0x1c
push eax
lea ecx, [ebp - 0x9c]
call fcn.1000bd90
jmp 0x1004c9f1
push 0x101a8ad4
lea ecx, [ebp - 0x80]
call fcn.1000c200
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.100121a0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x6c], 0x10
jb 0x1004c9dd
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi]
push 0xffffffffffffffff
push ebx
add eax, 0x1c
push eax
lea ecx, [ebp - 0x9c]
call fcn.100121a0
add esi, 8
cmp esi, dword [edi + 0xa8]
jne 0x1004c988
mov esi, dword [ebp - 0x118]
mov edi, dword [ebp - 0x12c]
inc esi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x118], esi
call fcn.100ac2e0
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 8]
add edi, 8
test edx, 0xfffffff8
jne 0x1004cabd
push 0x58
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1004ca47
mov esi, eax
call fcn.10044bb0
jmp 0x1004ca49
xor eax, eax
push eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
call fcn.10044890
push str.Not_Assigned
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.1000c200
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x144]
add ecx, 8
push eax
call fcn.1000b240
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x6c], 0x10
jb 0x1004ca9d
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x144]
call fcn.10032ab0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0xe
call fcn.100089e0
mov esi, dword [ebp - 0x118]
mov edi, dword [ebp - 0x164]
add edi, 0x1c
lea ecx, [ebp - 0x12c]
call fcn.10032ab0
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
mov eax, esi
sub eax, edx
je 0x1004cc74
mov ecx, dword [ebp - 0x154]
cmp esi, dword [ecx]
je 0x1004cc74
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 0x2c]
cmp ecx, ebx
je 0x1004cdf4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test al, al
je 0x1004cdf4
push str.CONTACT_IMPORT_TASK
push str.Caller_cancled_the_import______
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 0x10d], 1
call fcn.1000c240
lea ecx, [ebp - 0x2c]
call fcn.1000c240
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x160]
cmp esi, ebx
je 0x1004cb88
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1004cb88
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1004cb88
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x128]
cmp esi, ebx
je 0x1004cbbf
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1004cbbf
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1004cbbf
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x11c]
cmp esi, ebx
je 0x1004cbf6
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1004cbf6
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1004cbf6
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [ebp - 0xdc], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x1004cc11
mov eax, dword [ebp - 0xf0]
push eax
call edi
add esp, 4
mov esi, 8
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0xa4], esi
jb 0x1004cc40
mov ecx, dword [ebp - 0xb8]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0xc0], esi
jb 0x1004cc6d
mov eax, dword [ebp - 0xd4]
push eax
call edi
add esp, 4
mov al, 1
jmp 0x1004d575
mov eax, dword [ebp - 0x134]
inc dword [eax + 0x20]
mov eax, dword [eax + 0x20]
push eax
push str.We_will_Add_the__dth_Batch_of_Contacts___
lea esi, [ebp - 0x80]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x1004cc9d
mov eax, dword [eax]
push str.CONTACT_IMPORT_TASK
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x6c], 0x10
jb 0x1004ccc8
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x134]
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx - 0xa]
push 5
push str.phone
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.1000c100
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x17c]
push edx
push eax
lea ecx, [ebp - 0x64]
push ecx
add esi, 0x24
lea edx, [ebp - 0x184]
push esi
push edx
mov byte [ebp - 4], 0x13
call fcn.1004dc20
add esp, 0x1c
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x50], 0x10
jb 0x1004cd48
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x18c]
push ecx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x114], 0x927c0
call fcn.1004dcc0
push eax
mov byte [ebp - 4], 0x16
call fcn.100232a0
add esp, 0x14
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0x15
call fcn.100089e0
push str.CONTACT_IMPORT_TASK
push str.MultiAdd_Contact_Has_Done____
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
cmp eax, ecx
je 0x1004cde5
mov edx, dword [ebp - 0x130]
push edx
push ecx
call fcn.1011d450
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [ebp - 0x130]
push eax
mov eax, esi
call fcn.10044f00
add esp, 0xc
mov dword [edi + 4], esi
xor ebx, ebx
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xe
call fcn.100089e0
cmp dword [ebp - 0x88], 0x10
jb 0x1004d4f1
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1004d4f1
push ebx
lea edx, [ebp - 0x2c]
push edx
mov edx, 0x101a8d98
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004ce86
mov edi, dword [ebp - 0x120]
cmp edi, ebx
je 0x1004cb49
push ebx
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x101a8d98
call fcn.1003a720
push 0x101a8d98
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.1000c200
add esi, dword [eax + 0x10]
lea ecx, [ebp - 0x48]
call fcn.1000c240
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
lea ecx, [edi + 0x30]
push eax
mov byte [ebp - 4], 0x17
call fcn.1000b240
jmp 0x1004d4e9
push ebx
lea eax, [ebp - 0x2c]
push eax
mov edx, str.TEL_TYPE
call fcn.1003a720
lea ecx, [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x1004d06e
cmp dword [ebp - 0x120], ebx
je 0x1004cb4c
push ebx
push ecx
mov edx, str.TEL_TYPE
call fcn.1003a720
push str.TEL_TYPE
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.1000c200
add esi, dword [eax + 0x10]
lea ecx, [ebp - 0x48]
call fcn.1000c240
push esi
lea edx, [ebp - 0x2c]
push edx
mov edx, 0x101a8aa4
call fcn.1003a720
push 0x54
mov edi, eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1004cefa
call fcn.100178b0
jmp 0x1004cefc
xor eax, eax
push eax
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
call fcn.10016b10
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.10025fb0
push ebx
lea eax, [ebp - 0x64]
push eax
mov edx, str.CELL
mov byte [ebp - 4], 0x19
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004cf56
push str.Mobile
lea ecx, [ebp - 0x48]
call fcn.1000c200
mov byte [ebp - 4], 0x1a
jmp 0x1004cfa2
push ebx
lea ecx, [ebp - 0x64]
push ecx
mov edx, 0x101a8ab8
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004cf7d
push str.Other
lea ecx, [ebp - 0x48]
call fcn.1000c200
mov byte [ebp - 4], 0x1b
jmp 0x1004cfa2
push ebx
lea edx, [ebp - 0x64]
push edx
mov edx, str.CUSTOM
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004cfb7
push str.Custom
lea ecx, [ebp - 0x48]
call fcn.1000c200
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x64]
call fcn.1000b240
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.1000c240
push 0x101a8aa4
lea ecx, [ebp - 0x9c]
call fcn.1000c200
mov esi, eax
push 0x101a8aa4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1d
call fcn.1000c200
mov byte [ebp - 4], 0x1e
mov esi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
sub ecx, esi
sub ecx, edi
push ecx
add eax, edi
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
mov byte [ebp - 4], 0x1f
mov esi, dword [ebp - 0x150]
lea ecx, [esi + 0x1c]
push eax
call fcn.1000b240
lea ecx, [ebp - 0x48]
call fcn.1000c240
lea ecx, [ebp - 0x80]
call fcn.1000c240
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x19
call fcn.1000c240
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.1000bd90
mov edi, dword [ebp - 0x120]
add edi, 0xa4
lea ecx, [ebp - 0x150]
call fcn.10032ab0
lea ecx, [ebp - 0x64]
call fcn.1000c240
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 9
call fcn.100089e0
jmp 0x1004d4f1
push ebx
push ecx
mov edx, str.EMAIL_TYPE
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004d1d3
cmp dword [ebp - 0x120], ebx
je 0x1004cb49
push ebx
lea edx, [ebp - 0x2c]
push edx
mov edx, str.EMAIL_TYPE
call fcn.1003a720
push str.EMAIL_TYPE
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.1000c200
add esi, dword [eax + 0x10]
lea ecx, [ebp - 0x48]
call fcn.1000c240
push esi
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x101a8aa4
call fcn.1003a720
push 0x54
mov edi, eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1004d0df
call fcn.100178b0
jmp 0x1004d0e1
xor eax, eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
call fcn.10016bb0
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x20
call fcn.10025fb0
mov byte [ebp - 4], 0x21
mov esi, dword [ebp - 0x15c]
push eax
mov ecx, esi
call fcn.1000b240
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x20
call fcn.1000c240
push 0x101a8aa4
lea ecx, [ebp - 0x9c]
call fcn.1000c200
mov dword [ebp - 0x114], eax
push 0x101a8aa4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x22
call fcn.1000c200
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x114]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
sub edx, ecx
sub edx, edi
push edx
add edi, eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 0x24
call fcn.1000b240
lea ecx, [ebp - 0x48]
call fcn.1000c240
lea ecx, [ebp - 0x80]
call fcn.1000c240
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x20
call fcn.1000c240
mov edi, dword [ebp - 0x120]
add edi, 0xb4
lea ecx, [ebp - 0x15c]
call fcn.10032ab0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 9
call fcn.100089e0
jmp 0x1004d4f1
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, str.PHOTO_ENCODINGB_TYPE
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004d414
mov edi, dword [ebp - 0x120]
cmp edi, ebx
je 0x1004cb49
push ebx
lea edx, [ebp - 0x2c]
push edx
mov edx, str.PHOTO_ENCODINGB_TYPE
call fcn.1003a720
push eax
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x101a8aa4
call fcn.1003a720
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
jne 0x1004d239
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.1000c240
mov esi, dword [ebp - 0x114]
jmp 0x1004d515
lea ecx, [ebp - 0x238]
push ecx
call fcn.10035440
mov edx, dword [ebp - 0x118]
push str..png
push edx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x25
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.10035c90
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 4], 0x26
call fcn.1004e1d0
push ebx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0x1c
mov ecx, eax
lea eax, [ebp - 0xd4]
lea ebx, [ebp - 0x9c]
mov byte [ebp - 4], 0x27
call fcn.10008060
lea esi, [ebp - 0x10c]
mov byte [ebp - 4], 0x29
call fcn.1000ba80
mov eax, dword [ebp - 0x9c]
mov ebx, 8
cmp dword [ebp - 0x88], ebx
jae 0x1004d2dc
lea eax, [ebp - 0x9c]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004d34e
push str.CONTACT_IMPORT_TASK
push str.Create_Photo_File_failed_
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
lea esi, [ebp - 0x9c]
call fcn.1000ba80
lea ecx, [ebp - 0x64]
call fcn.1000c240
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 9
call fcn.10034a00
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.1000c240
mov esi, dword [ebp - 0x114]
xor ebx, ebx
jmp 0x1004d515
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x124]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 0x2a
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::deBase64_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
mov byte [ebp - 4], 0x2b
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
jae 0x1004d38e
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x70]
push 0
lea edx, [ebp - 0x130]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
lea ecx, [edi + 0x6c]
push eax
mov byte [ebp - 4], 0x2c
call fcn.1000b240
lea ecx, [ebp - 0x10c]
call fcn.1000c240
lea ecx, [ebp - 0x80]
call fcn.1000c240
lea ecx, [ebp - 0x48]
call fcn.1000c240
lea esi, [ebp - 0x9c]
call fcn.1000ba80
lea ecx, [ebp - 0x64]
call fcn.1000c240
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 9
call fcn.10034a00
xor ebx, ebx
jmp 0x1004d4f1
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, str.CATEGORIES:
call fcn.1003a720
cmp eax, 0xffffffff
je 0x1004d4f1
mov edi, dword [ebp - 0x12c]
cmp edi, ebx
je 0x1004cb49
push ebx
lea edx, [ebp - 0x2c]
push edx
mov edx, str.CATEGORIES:
call fcn.1003a720
push str.CATEGORIES:
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.1000c200
add esi, dword [eax + 0x10]
lea ecx, [ebp - 0x10c]
call fcn.1000c240
mov eax, dword [ebp - 0x1c]
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
push 0x58
mov byte [ebp - 4], 0x2d
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1004d498
mov esi, eax
call fcn.10044bb0
jmp 0x1004d49a
xor eax, eax
push eax
lea edx, [ebp - 0x13c]
push edx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
call fcn.10044890
push 0xffffffffffffffff
mov byte [ebp - 4], 0x2e
mov ecx, dword [ebp - 0x13c]
push ebx
lea eax, [ebp - 0x48]
add ecx, 8
push eax
call fcn.1000bd90
add edi, 8
lea ecx, [ebp - 0x13c]
call fcn.10032ab0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x2d
call fcn.100089e0
lea ecx, [ebp - 0x48]
call fcn.1000c240
mov esi, dword [ebp - 0x148]
inc esi
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x114], esi
jb 0x1004d515
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x148], 0xffffffff
jne 0x1004c828
jmp 0x1004cb51
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
cmp dword [ebp - 0xa4], esi
jb 0x1004d546
mov ecx, dword [ebp - 0xb8]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0xc0], esi
jb 0x1004d573
mov eax, dword [ebp - 0xd4]
push eax
call edi
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret