Function at 0x413c80
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 0x5ecd3d
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x674ff8]
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
mov dword [ebp - 0x230], 0
call fcn.0047d277
mov ecx, eax
test ecx, ecx
jne 0x413ce4
push 0x80004005
call fcn.004050a0
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.0047d277
mov ecx, eax
test ecx, ecx
jne 0x413d15
push 0x80004005
call fcn.004050a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
call fcn.0047d277
mov ecx, eax
test ecx, ecx
jne 0x413d3c
push 0x80004005
call fcn.004050a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 7
call fcn.0047d277
mov ecx, eax
test ecx, ecx
jne 0x413d63
push 0x80004005
call fcn.004050a0
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 0x413d92
mov eax, dword [ecx]
jmp 0x413d94
mov eax, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [eax], di
lea eax, [ebp + 0x50]
push edi
push eax
call fcn.0040a500
mov edx, 0xfde9
lea ecx, [ebp - 0x250]
call fcn.00405470
add esp, 0x18
push 0xd
push 0x63d67c
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.0040a630
push 0x20
push str.Content_type:_application_json_r_n
lea ecx, [ebp - 0x228]
call fcn.0040a630
push 0x63ca44
lea ecx, [ebp + 0x38]
call fcn.00414780
test eax, eax
je 0x413e3e
cmp dword [ebp + 0x4c], 8
jb 0x413e02
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x413e05
xor ecx, ecx
jmp 0x413e1f
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 0x413e10
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x228]
call fcn.0040a630
push 2
push 0x63d6dc
lea ecx, [ebp - 0x228]
call fcn.0040a630
push dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push dword [ebp - 0x228]
push str._sContent_length:__d_r_n
push eax
call fcn.00404790
add esp, 0x10
lea ecx, [ebp - 0x228]
push 4
push 0x63d714
call fcn.0040a630
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.0048d772
test eax, eax
je 0x4144ce
mov eax, dword [ebp - 0x254]
cmp eax, 3
je 0x413ebb
cmp eax, 0x100b
jne 0x4144ce
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 0x41404b
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_InternetOpen_error
push eax
call fcn.0043a270
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x23c]
mov edi, eax
cmp ecx, 0x10
jb 0x413f16
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.0040b000
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 0x413f4f
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 0x413f70
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 0x413f91
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 0x413fb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x413fc5
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040b0f0
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 0x413fee
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040b0f0
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 0x414017
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.0040b0f0
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 0x414636
inc eax
lea ecx, [ebp + 0x50]
push eax
push dword [ebp + 0x50]
call fcn.0040b0f0
mov eax, edi
jmp 0x414684
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 0x414150
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_InternetConnect_error
push eax
call fcn.0043a270
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.0040b0b0
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 0x4140c8
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 0x4140e9
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 0x41410a
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 0x414129
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 8]
call fcn.0040b1c0
lea ecx, [ebp + 0x20]
call fcn.0040b1c0
lea ecx, [ebp + 0x38]
call fcn.0040b1c0
lea ecx, [ebp + 0x50]
call fcn.0040b1c0
mov eax, edi
jmp 0x414684
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 0x63d824
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 0x4141c6
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_HttpOpenRequest_error
push eax
call fcn.0043a270
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0xc
push dword [ebp - 0x278]
call edi
push ebx
call edi
jmp 0x414097
cmp dword [ebp - 0x254], 0x100b
jne 0x41428c
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 0x41428c
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_InternetSetOption_error
push eax
call fcn.0043a270
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.0040b0b0
lea ecx, [ebp - 0x234]
call fcn.00405250
lea ecx, [ebp - 0x228]
call fcn.00405250
lea ecx, [ebp - 0x22c]
call fcn.00405250
lea ecx, [ebp - 0x230]
call fcn.00405250
lea ecx, [ebp + 8]
call fcn.0040b1c0
lea ecx, [ebp + 0x20]
call fcn.0040b1c0
lea ecx, [ebp + 0x38]
call fcn.0040b1c0
lea ecx, [ebp + 0x50]
call fcn.0040b1c0
mov eax, esi
jmp 0x414684
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 0x4142c4
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_HttpAddRequestHeaders_error
jmp 0x414209
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x414307
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 0x41430d
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_HttpSendRequest_error
jmp 0x414209
push 0
push 0
jmp 0x4142e4
push 0x63d93a
lea ecx, [ebp - 0x26c]
call fcn.0040afa0
push 0x105
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xa
push 0
push eax
mov dword [ebp - 0x238], 0
call fcn.005c7190
push 0x105
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.005c7190
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 0x4143fe
test ecx, ecx
je 0x4143fe
push ecx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.005c6c10
add esp, 0xc
cmp byte [ebp - 0x11c], 0
jne 0x4143aa
xor ecx, ecx
jmp 0x4143bc
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4143b3
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004149b0
push 0x105
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.005c7190
push 0x105
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.005c7190
mov ecx, dword [ebp - 0x238]
add esp, 0x18
cmp esi, 1
jne 0x41440b
test ecx, ecx
jne 0x414354
cmp dword [ebp - 0x258], 0x10
lea edx, [ebp - 0x26c]
push 0xfde9
cmovae edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x298]
call fcn.00413b70
add esp, 4
mov ecx, dword [ebp - 0x27c]
push 0xffffffffffffffff
push 0
push eax
mov byte [ebp - 4], 0xb
call fcn.0040e600
lea ecx, [ebp - 0x298]
call fcn.0040b1c0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x278]
call esi
push ebx
call esi
lea ecx, [ebp - 0x26c]
call fcn.0040b0b0
lea ecx, [ebp - 0x250]
call fcn.0040b0b0
lea ecx, [ebp - 0x234]
call fcn.00405250
lea ecx, [ebp - 0x228]
call fcn.00405250
lea ecx, [ebp - 0x22c]
call fcn.00405250
lea ecx, [ebp - 0x230]
call fcn.00405250
lea ecx, [ebp + 8]
call fcn.0040b1c0
lea ecx, [ebp + 0x20]
call fcn.0040b1c0
lea ecx, [ebp + 0x38]
call fcn.0040b1c0
lea ecx, [ebp + 0x50]
call fcn.0040b1c0
xor eax, eax
jmp 0x414684
call fcn.0040f620
push str.CHttpSender::SendInternet
push str.__s__:_AfxParseURL_error
push eax
call fcn.0043a270
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x23c]
mov edi, eax
cmp ecx, 0x10
jb 0x41450c
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.0040b000
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 0x414545
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 0x414566
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 0x414587
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 0x4145a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4145bb
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040b0f0
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 0x4145e4
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040b0f0
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 0x41460d
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.0040b0f0
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 0x414636
inc eax
lea ecx, [ebp + 0x50]
push eax
push dword [ebp + 0x50]
call fcn.0040b0f0
mov eax, edi
jmp 0x414684
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.005c2ae8
mov esp, ebp
pop ebp
ret 0x64