Function at 0x4079f0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd39d
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0
mov byte [ebp - 4], 4
lea esi, [ebp + 0x50]
cmp dword [ebp + 0x64], 8
lea edi, [ebp + 8]
cmovae esi, dword [ebp + 0x50]
cmp dword [ebp + 0x1c], 8
cmovae edi, dword [ebp + 8]
call fcn.00404190
push esi
push edi
push str.CHttpSender::SendInternet
push str.__s__:_url__s___msg__s_
push eax
call fcn.00425940
add esp, 0x14
mov dword [ebp - 0x230], 0
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x407a84
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x22c], 0
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x407ab5
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x407adc
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 7
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x407b03
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x407b32
mov eax, dword [ecx]
jmp 0x407b34
mov eax, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [eax], di
lea eax, [ebp + 0x50]
push edi
push eax
call fcn.00402890
mov edx, 0xfde9
lea ecx, [ebp - 0x250]
call fcn.004077f0
add esp, 0x18
push 0xd
push 0x61bbc8
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.00408a70
push 0x20
push str.Content_type:_application_json_r_n
lea ecx, [ebp - 0x228]
call fcn.00408a70
push 0x61b534
lea ecx, [ebp + 0x38]
call fcn.004086f0
test eax, eax
je 0x407bde
cmp dword [ebp + 0x4c], 8
jb 0x407ba2
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x407ba5
xor ecx, ecx
jmp 0x407bbf
lea edx, [ebp + 0x38]
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407bb0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x228]
call fcn.00408a70
push 2
push 0x61bc2c
lea ecx, [ebp - 0x228]
call fcn.00408a70
push dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push dword [ebp - 0x228]
push str._sContent_length:__d_r_n
push eax
call fcn.004057a0
add esp, 0x10
lea ecx, [ebp - 0x228]
push 4
push 0x61bc64
call fcn.00408a70
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x254]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.0046dc6c
test eax, eax
je 0x408295
mov eax, dword [ebp - 0x254]
cmp eax, 3
je 0x407c5b
cmp eax, 0x100b
jne 0x408295
push 0
push 0
push 0
push 0
push str._kakaogame_launcher_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x407deb
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_InternetOpen_error
push eax
call fcn.00425940
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x23c]
mov edi, eax
cmp ecx, 0x10
jb 0x407cb6
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.00408ff0
lea edx, [esi - 0x10]
mov dword [ebp - 0x23c], 0xf
or esi, 0xffffffff
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
mov eax, esi
mov byte [ebp - 4], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407cef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x407d50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x407d65
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x407d8e
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
cmp eax, 8
jb 0x407db7
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x4c], 7
mov word [ebp + 0x38], ax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
cmp eax, 8
jb 0x4083fd
inc eax
lea ecx, [ebp + 0x50]
push eax
push dword [ebp + 0x50]
call fcn.00402e30
mov eax, edi
jmp 0x40844b
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x274]
push dword [ebp - 0x230]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [ebp - 0x278], edx
test edx, edx
jne 0x407ef0
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_InternetConnect_error
push eax
call fcn.00425940
add esp, 0xc
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x250]
mov edi, eax
call fcn.00408bd0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407e68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407eaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x407ec9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 8]
call fcn.00402f00
lea ecx, [ebp + 0x20]
call fcn.00402f00
lea ecx, [ebp + 0x38]
call fcn.00402f00
lea ecx, [ebp + 0x50]
call fcn.00402f00
mov eax, edi
jmp 0x40844b
cmp dword [ebp - 0x254], 0x100b
mov ecx, 0x84880000
push 0
mov eax, 0x84080000
cmove eax, ecx
cmp dword [ebp + 0x34], 8
push eax
push 0
push 0
push 0x61bd40
push dword [ebp - 0x22c]
lea ecx, [ebp + 0x20]
mov dword [ebp - 0x270], eax
cmovae ecx, dword [ebp + 0x20]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x407f66
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_HttpOpenRequest_error
push eax
call fcn.00425940
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0xc
push dword [ebp - 0x278]
call edi
push ebx
call edi
jmp 0x407e37
cmp dword [ebp - 0x254], 0x100b
jne 0x40802c
push 4
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0xf180
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x40802c
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_InternetSetOption_error
push eax
call fcn.00425940
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0xc
push edi
call esi
push dword [ebp - 0x278]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x250]
mov esi, eax
call fcn.00408bd0
lea ecx, [ebp - 0x234]
call fcn.00404030
lea ecx, [ebp - 0x228]
call fcn.00404030
lea ecx, [ebp - 0x22c]
call fcn.00404030
lea ecx, [ebp - 0x230]
call fcn.00404030
lea ecx, [ebp + 8]
call fcn.00402f00
lea ecx, [ebp + 0x20]
call fcn.00402f00
lea ecx, [ebp + 0x38]
call fcn.00402f00
lea ecx, [ebp + 0x50]
call fcn.00402f00
mov eax, esi
jmp 0x40844b
mov eax, dword [ebp - 0x228]
push 0xa0000000
mov dword [ebp - 0x270], 0xa0000000
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x408064
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_HttpAddRequestHeaders_error
jmp 0x407fa9
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x4080a7
cmp dword [ebp - 0x23c], 0x10
lea eax, [ebp - 0x250]
push ecx
cmovae eax, dword [ebp - 0x250]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4080ad
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_HttpSendRequest_error
jmp 0x407fa9
push 0
push 0
jmp 0x408084
push 0x61be74
lea ecx, [ebp - 0x26c]
call fcn.00409140
push 0x105
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xa
push 0
push eax
mov dword [ebp - 0x238], 0
call fcn.005a7a20
push 0x105
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.005a7a20
add esp, 0x18
lea eax, [ebp - 0x238]
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x238]
mov esi, eax
test esi, esi
je 0x40819e
test ecx, ecx
je 0x40819e
push ecx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.005a74a0
add esp, 0xc
cmp byte [ebp - 0x11c], 0
jne 0x40814a
xor ecx, ecx
jmp 0x40815c
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408153
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00408940
push 0x105
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.005a7a20
push 0x105
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.005a7a20
mov ecx, dword [ebp - 0x238]
add esp, 0x18
cmp esi, 1
jne 0x4081ab
test ecx, ecx
jne 0x4080f4
cmp dword [ebp - 0x258], 0x10
lea edx, [ebp - 0x26c]
push ecx
cmovae edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x298]
call fcn.004078e0
add esp, 4
mov ecx, dword [ebp - 0x27c]
push 0xffffffffffffffff
push 0
push eax
mov byte [ebp - 4], 0xb
call fcn.00402580
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0xa
call fcn.00402f00
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x278]
call esi
push ebx
call esi
mov ebx, dword [ebp - 0x27c]
cmp dword [ebx + 0x14], 8
jb 0x408213
mov ebx, dword [ebx]
call fcn.00404190
push ebx
push str.CHttpSender::SendInternet
push str.__s__:_recv__s_
push eax
call fcn.00425940
add esp, 0x10
lea ecx, [ebp - 0x26c]
call fcn.00408bd0
lea ecx, [ebp - 0x250]
call fcn.00408bd0
lea ecx, [ebp - 0x234]
call fcn.00404030
lea ecx, [ebp - 0x228]
call fcn.00404030
lea ecx, [ebp - 0x22c]
call fcn.00404030
lea ecx, [ebp - 0x230]
call fcn.00404030
lea ecx, [ebp + 8]
call fcn.00402f00
lea ecx, [ebp + 0x20]
call fcn.00402f00
lea ecx, [ebp + 0x38]
call fcn.00402f00
lea ecx, [ebp + 0x50]
call fcn.00402f00
xor eax, eax
jmp 0x40844b
call fcn.00404190
push str.CHttpSender::SendInternet
push str.__s__:_AfxParseURL_error
push eax
call fcn.00425940
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x23c]
mov edi, eax
cmp ecx, 0x10
jb 0x4082d3
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.00408ff0
lea edx, [esi - 0x10]
mov dword [ebp - 0x23c], 0xf
or esi, 0xffffffff
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
mov eax, esi
mov byte [ebp - 4], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40830c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40832d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40834e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40836d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x408382
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x4083ab
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
cmp eax, 8
jb 0x4083d4
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.00402e30
xor eax, eax
mov dword [ebp + 0x4c], 7
mov word [ebp + 0x38], ax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
cmp eax, 8
jb 0x4083fd
inc eax
lea ecx, [ebp + 0x50]
push eax
push dword [ebp + 0x50]
call fcn.00402e30
mov eax, edi
jmp 0x40844b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 0x64