Function at 0x10002600
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008cfa
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x1000e008]
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 esi, ecx
mov dword [ebp - 0x194], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x198], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x190], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1000265c
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10002666
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x1000266f
push eax
call edi
push 0xc
xor eax, eax
mov dword [ebp - 0x178], 0
push str.HancomOffice
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x174], 7
mov word [ebp - 0x188], ax
call fcn.10001e00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
push 0x12
xor eax, eax
mov dword [ebp - 0x148], 0
push str.api.hancomdocs.com
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
call fcn.10001e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
push 0x1b
xor eax, eax
mov dword [ebp - 0x130], 0
push str._mydrive_mobile_getUserInfo
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
call fcn.10001e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
push 3
xor eax, eax
mov dword [ebp - 0x118], 0
push 0x1000a4d4
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
call fcn.10001e00
push 0
push 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x174], 8
push 0
cmovae eax, dword [ebp - 0x188]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x1000278a
push str.InternetOpen
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
or esi, 0xffffffff
jmp 0x10002e11
cmp dword [ebp - 0x144], 8
lea eax, [ebp - 0x158]
push 1
cmovae eax, dword [ebp - 0x158]
push 0
push 3
push 0
push 0
push 0x1bb
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [esi + 4], edx
test edx, edx
jne 0x100027e1
push str.InternetConnect
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov esi, 0xfffffffe
jmp 0x10002e11
cmp dword [ebp - 0x12c], 8
lea ecx, [ebp - 0x140]
push 0
cmovae ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 8
push 0x4c00100
cmovae eax, dword [ebp - 0x128]
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 8], eax
test eax, eax
jne 0x10002849
push str.HttpOpenRequest
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov esi, 0xfffffffd
jmp 0x10002e11
push ebx
lea eax, [ebp - 0x1b0]
push eax
call fcn.10001320
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x10002864
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x160], 0
xor eax, eax
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002886
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x170]
call fcn.10001e00
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x19c]
cmp edx, 8
jb 0x100028e8
mov ecx, dword [ebp - 0x1b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100028de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100028de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov ebx, dword [ebp - 0x160]
xor eax, eax
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 7
mov word [ebp - 0x1b0], ax
test ebx, ebx
jne 0x10002930
push str.Registry
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea esi, [ebx - 4]
jmp 0x10002e06
push str.x_zeropc_mapi_sid:
lea ecx, [ebp - 0x110]
call fcn.10001d60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x170]
cmp dword [ebp - 0x15c], 8
mov eax, dword [ebp - 0xfc]
cmovae ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x100]
sub eax, edx
cmp ebx, eax
ja 0x100029a6
cmp dword [ebp - 0xfc], 8
lea esi, [ebp - 0x110]
lea eax, [ebx + ebx]
cmovae esi, dword [ebp - 0x110]
lea edi, [edx + ebx]
push eax
push ecx
mov dword [ebp - 0x100], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x194]
jmp 0x100029c1
push ebx
push ecx
mov byte [ebp - 0xe0], 0
lea ecx, [ebp - 0x110]
push dword [ebp - 0xe0]
push ebx
call fcn.10002270
push 0x1000a5a0
lea ecx, [ebp - 0x110]
call fcn.10001f50
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x110]
cmp dword [ebp - 0xfc], 8
push 0x20000000
push dword [ebp - 0x100]
cmovae eax, dword [ebp - 0x110]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10002dcf
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xdc], 0xc8
lea eax, [ebp - 0xdc]
push 0
push eax
lea eax, [ebp - 0xd8]
push eax
push 0x13
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, 0x1000a5a8
lea eax, [ebp - 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10002a9e
test dx, dx
je 0x10002a9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10002a9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10002a78
xor eax, eax
jmp 0x10002aa3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002bc8
push eax
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x18c]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002bc8
nop dword [eax + eax]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x10002bc8
inc eax
push eax
call fcn.10007d2c
add esp, 4
mov dword [ebp - 0xe0], 0
mov ebx, eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0x18c]
push ebx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002bbf
cmp dword [ebp - 0xe0], 0
je 0x10002bbf
mov eax, dword [ebp - 0x18c]
mov edi, ebx
mov byte [ebx + eax], 0
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10002b30
mov edx, dword [ebp - 0xe4]
sub edi, ecx
mov ecx, dword [ebp - 0xe8]
mov eax, edx
sub eax, ecx
push edi
push ebx
cmp edi, eax
ja 0x10002b7f
cmp edx, 0x10
lea esi, [ebp - 0xf8]
lea eax, [ecx + edi]
cmovae esi, dword [ebp - 0xf8]
add esi, ecx
mov dword [ebp - 0xe8], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x194]
jmp 0x10002b98
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0xf8]
push dword [ebp - 0x198]
push edi
call fcn.10002fc0
push ebx
call fcn.10007ce9
add esp, 4
lea eax, [ebp - 0x18c]
push 0
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x10002ad0
jmp 0x10002bc8
push ebx
call fcn.10007ce9
add esp, 4
mov ecx, esi
call fcn.10002f90
mov eax, dword [ebp - 0xe8]
test eax, eax
jne 0x10002bf9
push 0x1000a5d8
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, 0xfffffffa
jmp 0x10002ded
cmp dword [ebp - 0xe4], 0x10
lea ebx, [ebp - 0xf8]
cmovae ebx, dword [ebp - 0xf8]
cmp eax, 0x19
jb 0x10002ca1
add eax, 0xffffffe8
add eax, ebx
sub eax, ebx
push eax
push 0x22
push ebx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10002ca1
mov ecx, edi
mov edx, str._account_type_:_FREEMIUM_
mov esi, 0x15
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002c51
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002c40
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10002c78
cmp esi, 0xfffffffd
je 0x10002c74
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10002c78
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10002c78
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10002c78
xor eax, eax
jmp 0x10002c7d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10002cc1
mov eax, dword [ebp - 0xe8]
inc edi
add eax, 0xffffffe8
add eax, ebx
sub eax, edi
push eax
push 0x22
push edi
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10002c33
push str.AccountType
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, 0xfffffff9
jmp 0x10002ded
sub edi, ebx
cmp edi, 0xffffffff
je 0x10002ca1
mov byte [ebp - 4], 9
lea edi, [ebp - 0xf8]
xor eax, eax
mov dword [ebp - 0x198], 1
xor edx, edx
mov word [ebp - 0x1b0], ax
cmp dword [ebp - 0xe4], 0x10
lea eax, [ebp - 0xf8]
mov ecx, 7
mov dword [ebp - 0x1a0], edx
cmovae eax, dword [ebp - 0xf8]
add eax, dword [ebp - 0xe8]
cmp dword [ebp - 0xe4], 0x10
mov ebx, eax
mov dword [ebp - 0x19c], ecx
cmovae edi, dword [ebp - 0xf8]
xor esi, esi
sub ebx, edi
cmp edi, eax
cmova ebx, edx
mov dword [ebp - 0x194], ebx
test ebx, ebx
je 0x10002d98
movsx ax, byte [edi]
movzx ebx, ax
cmp edx, ecx
jae 0x10002d66
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1b0]
xor ecx, ecx
mov word [eax + edx*2], bx
mov word [eax + edx*2 + 2], cx
jmp 0x10002d80
push eax
mov byte [ebp - 0xdc], 0
push dword [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.10001fe0
mov ecx, dword [ebp - 0x19c]
inc esi
inc edi
cmp esi, dword [ebp - 0x194]
je 0x10002d98
mov edx, dword [ebp - 0x1a0]
jmp 0x10002d35
cmp ecx, 8
lea eax, [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1b0]
push eax
push 0x3e8
push dword [ebp - 0x190]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x1b0]
call fcn.10001cc0
mov esi, 1
jmp 0x10002df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.HttpSendRequest
push 0x3e8
push dword [ebp - 0x190]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0xf8]
call fcn.10001db0
lea ecx, [ebp - 0x110]
call fcn.10001cc0
lea ecx, [ebp - 0x170]
call fcn.10001cc0
mov edx, dword [ebp - 0x114]
cmp edx, 8
jb 0x10002e53
mov ecx, dword [ebp - 0x128]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002e49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002e49
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov edx, dword [ebp - 0x12c]
xor eax, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
cmp edx, 8
jb 0x10002eb2
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002ea8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002ea8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov edx, dword [ebp - 0x144]
xor eax, eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
cmp edx, 8
jb 0x10002f11
mov ecx, dword [ebp - 0x158]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002f07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002f07
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov edx, dword [ebp - 0x174]
xor eax, eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
cmp edx, 8
jb 0x10002f70
mov ecx, dword [ebp - 0x188]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002f66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002f66
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov eax, esi
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.10007cd8
mov esp, ebp
pop ebp
ret 8