Function at 0x40e770
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564be0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 0xa0], ebx
je 0x40e7e4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, edi
call fcn.0040f580
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x40e7d0
push eax
call esi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40e7da
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40e7e4
push eax
call esi
mov dword [ebp - 4], ebx
mov eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
cmp dword [edi + 0x40], ebx
je 0x40e933
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax]
cmp ebx, dword [edi + 0x3c]
je 0x40e91c
mov eax, dword [ebp - 0x14]
push eax
mov eax, 1
lea esi, [ebp - 0x38]
call fcn.004100a0
mov esi, dword [eax]
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0x1c]
add esp, 4
test byte [ebx + 0x14], 2
je 0x40e84a
push eax
call fcn.0040c270
mov ecx, eax
add esp, 4
lea eax, [ebp - 0x3c]
jmp 0x40e85d
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0040c600
mov ecx, eax
add esp, 0xc
lea eax, [ebp - 0x40]
push esi
call fcn.00410010
mov eax, dword [eax]
add esp, 4
push eax
mov eax, 1
lea esi, [ebp - 0x44]
call fcn.004100a0
mov eax, dword [eax]
mov ecx, dword [edi + 0x1c]
add esp, 4
test byte [ebx + 0x14], 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
je 0x40e895
push eax
call fcn.0040c270
add esp, 4
jmp 0x40e8a3
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0040c600
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
lea eax, [ebp - 0x48]
call fcn.00410010
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x14], ecx
push edx
mov ecx, esi
lea eax, [ebp - 0x4c]
call fcn.00410010
mov ecx, dword [edi + 0x3c]
mov eax, dword [eax]
add esp, 4
mov dword [ebp - 0x2c], eax
cmp ebx, dword [ecx]
jne 0x40e8e1
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
cmp byte [ebx + 0x19], 0
jne 0x40e80f
mov eax, dword [ebx + 8]
cmp byte [eax + 0x19], 0
jne 0x40e903
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x19], 0
je 0x40e8f4
jmp 0x40e80f
mov eax, dword [ebx + 4]
cmp byte [eax + 0x19], 0
jne 0x40e915
cmp ebx, dword [eax + 8]
jne 0x40e915
mov ebx, eax
jmp 0x40e903
mov ebx, eax
jmp 0x40e80f
cmp dword [ebp - 0x14], 0
jbe 0x40e92d
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x14]
call fcn.0040c8a0
cmp dword [ebp - 0x1c], 0
jne 0x40e977
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x54]
mov esi, dword [edi + 0x50]
mov ebx, dword [edi + 0x4c]
test eax, eax
jne 0x40e94b
mov eax, str.Ryeol_HTTP_Client_Class
push ecx
push edx
push esi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
jne 0x40e96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov esi, 0x192
call fcn.0040b910
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 0
jne 0x40e995
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040dc60
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push 0x5993dc
push edx
push edi
call fcn.0040ded0
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.0040e0b0
mov ecx, dword [edi + 0x1c]
push 0x5992f8
push str.Content_Type
mov edx, ebx
call fcn.0040bee0
add esp, 8
xor esi, esi
mov eax, ebx
push esi
push esi
cmp eax, esi
jne 0x40e9e0
mov ecx, str.CHttpToolW::SendRequestEx:_hRequest_can_not_be_NULL.
call fcn.0040ba40
mov ecx, dword [ebp - 0x14]
push esi
lea edx, [ebp - 0x78]
push edx
push eax
mov dword [ebp - 0x78], 0x28
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x40ea28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov esi, 0x197
call fcn.0040b910
lea eax, [edi + 0x34]
call fcn.0040caf0
lea ebx, [edi + 0x9c]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x28]
cmp eax, esi
je 0x40ea4c
push eax
call fcn.00531f88
add esp, 4
mov dword [ebx + 0x28], esi
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x40ea5f
push eax
call fcn.00531f88
add esp, 4
mov dword [ebx + 0x2c], esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], edx
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x20], esi
mov eax, 1
mov dword [ebx + 4], eax
mov dword [edi + 0xe8], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 0xe4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0xf0], edx
mov edx, dword [ebp - 0x20]
mov dword [edi + 0xec], ecx
mov dword [edi + 0xf4], edx
mov dword [edi + 0xf8], eax
cmp dword [edi + 0x40], esi
je 0x40eb10
lea esi, [edi + 0x64]
push ebx
call fcn.0040cf00
push 0
mov ecx, esi
call fcn.0040d100
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40eaf5
push eax
call fcn.00531f88
add esp, 4
mov dword [esi + 0x2c], 0
mov ebx, dword [ebp - 0x30]
inc dword [esi + 0x1c]
lea edi, [esi + 0x28]
call fcn.0040cfd0
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8