Function at 0x43f250
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da7e3
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5246f0]
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 [ebp + 0x28]
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x254], ecx
xor eax, eax
mov dword [ebp - 4], eax
push 0x2000
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x248], eax
call fcn.0045ea51
add esp, 4
mov edi, eax
xor eax, eax
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x250], 0x2000
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x240], eax
call fcn.00402a50
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.00404d10
push ebx
push 0x1000
push edi
mov dword [ebp - 0x238], eax
call fcn.00401000
push 0x38
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00463ac0
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov eax, edi
mov dword [ebp - 0x290], 0x3c
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43f343
sub eax, ecx
lea ecx, [ebp - 0x290]
push ecx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x43f6a9
push 0
push 0
push 0
push 0
push str.byjh_4.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x244], ebx
test ebx, ebx
je 0x43f6a9
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x2c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x43f6a9
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00463ac0
add esp, 0xc
cmp dword [ebp - 0x27c], 0x7ffffffe
jbe 0x43f3e2
xor edx, edx
mov word [ebp - 0x210], dx
jmp 0x43f437
mov ebx, dword [ebp - 0x280]
lea eax, [ebp - 0x210]
mov ecx, eax
mov edx, 0xff
sub ebx, ecx
jmp 0x43f400
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx + edx - 0xff]
test ecx, ecx
je 0x43f425
movzx ecx, word [ebx + eax]
test cx, cx
je 0x43f425
mov word [eax], cx
add eax, 2
dec edx
jne 0x43f400
jmp 0x43f429
test edx, edx
jne 0x43f42c
sub eax, 2
mov ebx, dword [ebp - 0x244]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x278]
push 0
push eax
lea ecx, [ebp - 0x210]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x43f6a9
mov edx, dword [ebp - 0x254]
xor ecx, ecx
cmp dword [ebp - 0x284], 2
setne cl
dec ecx
and ecx, 0x800000
push ecx
mov ecx, dword [ebp - 0x264]
push 0
push edx
push 0
push ecx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x43f6a9
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x43f4c3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x23c]
push 0x20000000
push eax
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [ebp - 0x21c]
push 0
push eax
push eax
mov eax, dword [ebp - 0x238]
push eax
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x43f6a9
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x43f6a9
push 0x2000
push 0
push edi
call fcn.00463ac0
add esp, 0xc
push 0
lea ecx, [ebp - 0x234]
push ecx
push edi
push 0
push 0x13
push ebx
mov dword [ebp - 0x234], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
call fcn.0046006e
add esp, 4
cmp eax, 0xc8
jne 0x43f6af
jmp 0x43f540
lea edx, [ebp - 0x234]
push edx
push ebx
mov dword [ebp - 0x234], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x43f6a9
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x250]
jbe 0x43f58c
push edi
call fcn.0045f531
mov eax, dword [ebp - 0x234]
inc eax
push eax
mov dword [ebp - 0x250], eax
call fcn.0045ea51
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0
push edi
call fcn.00463ac0
mov eax, dword [ebp - 0x234]
add esp, 0xc
lea edx, [ebp - 0x248]
push edx
push eax
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x43f6a9
mov ebx, dword [ebp - 0x248]
push edi
mov ecx, esi
call fcn.00404d80
test al, al
je 0x43f640
mov ecx, esi
call fcn.00404e90
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x23c], ecx
mov ecx, esi
call fcn.004055b0
mov ecx, esi
cmp eax, dword [ebp - 0x23c]
jb 0x43f69d
call fcn.004055b0
sub eax, dword [ebp - 0x23c]
cmp eax, ebx
jae 0x43f605
mov ebx, eax
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x43f6a2
test ebx, ebx
je 0x43f689
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x238], eax
call fcn.00405220
test al, al
je 0x43f689
push ebx
mov ecx, esi
call fcn.00404e90
add eax, dword [ebp - 0x23c]
push eax
jmp 0x43f668
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x43f6a2
test ebx, ebx
je 0x43f689
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x238], eax
call fcn.00405220
test al, al
je 0x43f689
push ebx
push edi
mov ecx, esi
call fcn.00404e90
add eax, dword [esi + 0x10]
push eax
call fcn.00405430
mov edx, dword [ebp - 0x238]
add esp, 0xc
push edx
mov ecx, esi
call fcn.00405460
cmp dword [ebp - 0x234], 0
jbe 0x43f6c2
mov ebx, dword [ebp - 0x240]
jmp 0x43f540
call fcn.00404dc0
mov ecx, esi
call fcn.00404f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x43f6c2
push 0
mov ecx, esi
call fcn.00405460
push edi
call fcn.0045f531
mov eax, dword [ebp - 0x240]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x43f6de
push eax
call esi
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x43f6eb
push eax
call esi
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x43f6f8
push eax
call esi
lea ecx, [ebp - 0x22c]
call fcn.00405520
lea ecx, [ebp + 0xc]
call fcn.00405520
mov eax, dword [ebp - 0x230]
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.0045f522
mov esp, ebp
pop ebp
ret