Function at 0x1004e11
Capabilities:
Initialize winhttp library
Prepare http request
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
cmp dword [0x1009514], ebx
jne 0x1004e50
push 0x27f4
call fcn.01006518
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
mov edi, dword [0x10094e8]
mov eax, dword [0x1009518]
and edi, esi
mov dword [ebp - 0x2c], edi
cmp eax, ebx
je 0x1004ecf
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1003810
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x1004ecf
push 0x1003804
push dword [0x1009518]
call esi
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1004ff2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004ea0
sub eax, edx
mov esi, eax
lea eax, [esi + esi + 0x10]
push eax
call dword [0x100954c]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1004f35
push 0x2725
xor edi, edi
call fcn.01006518
pop ecx
jmp 0x100512c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10037f8
push dword [0x10094c0]
call dword [0x1009544]
mov esi, eax
cmp dword [ebp - 0x20], ebx
je 0x1004f09
push dword [ebp - 0x20]
call dword [0x1009548]
cmp dword [ebp - 0x24], ebx
je 0x1004f17
push dword [ebp - 0x24]
call dword [0x1009548]
cmp esi, ebx
jne 0x1004e92
push dword [ebp - 0x28]
push 0x27f5
call fcn.01006518
pop ecx
pop ecx
xor edi, edi
jmp 0x100513a
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc esi
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call edi
test eax, eax
jne 0x1004f6f
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x2781
call fcn.01006551
add esp, 0xc
jmp 0x100512c
cmp dword [ebp - 4], ebx
je 0x1004fc8
mov ecx, dword [ebp - 0xc]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1004f7c
sub eax, esi
sar eax, 1
lea ecx, [ecx + eax*2]
push 0x3a
pop eax
mov word [ecx], ax
mov eax, dword [ebp - 4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1004f99
sub eax, esi
cmp eax, 5
jbe 0x1004fb5
push dword [ebp - 4]
xor edi, edi
push 0x57
push 0x27f6
jmp 0x1004f62
push 6
add ecx, 2
push ecx
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
test eax, eax
je 0x1004f4b
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
sub eax, ebx
je 0x10050fb
dec eax
je 0x1005034
dec eax
je 0x100502b
push dword [ebp - 0x14]
push 0x27fc
call fcn.01006518
pop ecx
pop ecx
xor edi, edi
jmp 0x100512c
mov eax, dword [0x1009518]
cmp eax, ebx
je 0x1004fcb
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1004ffe
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call dword [0x100954c]
push dword [0x1009518]
mov dword [ebp - 0xc], eax
push esi
push eax
call fcn.01004da2
jmp 0x1004fcb
push ebx
push ebx
push dword [ebp - 0xc]
push 3
jmp 0x1005039
push ebx
push ebx
push ebx
push 1
push 0x10037e8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1005067
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x278c
jmp 0x1004f62
push ebx
push ebx
push dword [0x1009514]
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x10050a0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x278d
call fcn.01006551
add esp, 0xc
jmp 0x1005108
mov ecx, 0x10037b4
cmp dword [0x1009524], ebx
jne 0x10050b2
mov ecx, 0x1003790
neg edi
sbb edi, edi
and edi, 0x800000
push edi
push ebx
push ebx
push 0x100377c
push ecx
push 0x1003764
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10050f1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x278e
jmp 0x1005096
push eax
call fcn.01004852
mov edi, eax
jmp 0x1005108
push 0x27f7
xor edi, edi
call fcn.01006518
pop ecx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 8], ebx
je 0x1005118
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x18], ebx
je 0x1005122
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x100512c
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0xc], ebx
je 0x100513a
push dword [ebp - 0xc]
call dword [0x1009548]
cmp dword [ebp - 0x10], ebx
je 0x1005148
push dword [ebp - 0x10]
call dword [0x1009548]
cmp dword [ebp - 4], ebx
je 0x1005156
push dword [ebp - 4]
call dword [0x1009548]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret