Function at 0x4547c6
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
lea ebp, [esp - 0x107c]
mov eax, 0x107c
call fcn.00433370
push 0xffffffffffffffff
push 0x4ade92
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp + 0x1078], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x1084]
xor ebx, ebx
cmp eax, ebx
ja 0x454826
mov dword [esi + 0x11c], 3
jmp 0x4554d0
push ecx
lea ecx, [ebp]
call fcn.00408a60
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov dword [ebp - 4], ebx
jae 0x45483e
lea eax, [ebp + 4]
mov edi, 0x4b5ce4
push edi
push eax
call fcn.004a7894
pop ecx
pop ecx
test eax, eax
je 0x454872
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x45485c
lea eax, [ebp + 4]
mov edi, str.POST
push edi
push eax
call fcn.004a7894
pop ecx
pop ecx
test eax, eax
jne 0x4554bb
push edi
lea ecx, [ebp]
call fcn.004052b0
mov byte [ebp - 0x15], 1
cmp dword [esi], ebx
jne 0x4548b9
lea eax, [esi + 0x13c]
cmp dword [eax + 0x18], 8
jb 0x454894
mov eax, dword [eax + 4]
jmp 0x454897
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, ebx
jne 0x4548b9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
jmp 0x4554c5
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push dword [esi + 0x1b4]
push dword [esi + 0x1b0]
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
push 0x206
mov word [ebp + 0xc68], ax
lea eax, [ebp + 0xc6a]
push ebx
push eax
call fcn.00430560
xor eax, eax
push 0xa26
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push ebx
push eax
call fcn.00430560
push 0x3c
pop edi
push edi
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00430560
lea eax, [ebp + 0xc68]
mov dword [ebp - 0xb0], eax
lea eax, [ebp + 0x38]
add esp, 0x24
cmp dword [esi + 0x20], 8
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xac], 0x104
mov dword [ebp - 0x90], 0x514
mov dword [ebp - 0xb8], 1
jb 0x454964
mov ecx, dword [esi + 0xc]
jmp 0x454967
lea ecx, [esi + 0xc]
lea edx, [ebp - 0xc0]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4554ab
lea eax, [ebp + 0xc68]
push eax
lea ecx, [esi + 0x24]
call fcn.004052b0
push ebx
push dword [ebp - 0xa8]
lea eax, [ebp + 0xc68]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x60], eax
cmp eax, ebx
je 0x4554ab
cmp dword [ebp - 0xb4], 2
jne 0x4549bf
mov ecx, 0x800000
jmp 0x4549c1
xor ecx, ecx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4549cd
lea eax, [ebp + 4]
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x94]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4554a2
cmp byte [esi + 4], bl
jne 0x454a10
cmp dword [ebp - 0xb4], 2
jne 0x454a10
push 4
lea ecx, [ebp - 0x48]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x48], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x48]
inc dword [ebp - 0x48]
push 3
pop edi
cmp eax, edi
jae 0x455491
mov ecx, dword [esi + 0xf8]
cmp ecx, ebx
jbe 0x454a65
lea eax, [esi + 0xe4]
cmp dword [eax + 0x18], 8
jb 0x454a42
mov eax, dword [eax + 4]
jmp 0x454a45
add eax, 4
push 0x1000000
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x454a65
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esi + 0xd4], ebx
jbe 0x454acc
push str.Cookie:
lea ecx, [ebp + 0x1c]
call fcn.00408320
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0xc0]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.004087f0
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x454a9c
lea eax, [ebp + 0x20]
push 0x1000000
push dword [ebp + 0x30]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x454abe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00405110
cmp dword [esi + 0x114], ebx
jbe 0x454bdd
push 0xc
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00430560
xor eax, eax
push 0x206
mov word [ebp + 0xe70], ax
lea eax, [ebp + 0xe72]
push ebx
push eax
mov dword [ebp - 0x84], edi
call fcn.00430560
lea eax, [esi + 0x100]
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x454b1c
mov eax, dword [eax + 4]
jmp 0x454b1f
add eax, 4
push eax
lea eax, [ebp + 0xe70]
push 0x104
push eax
call fcn.004304d7
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
lea eax, [ebp + 0xe70]
push 0xc
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
push 0x26
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x454b63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x170]
cmp ecx, ebx
jbe 0x454be3
lea eax, [esi + 0x15c]
cmp dword [eax + 0x18], 8
jb 0x454b7e
mov eax, dword [eax + 4]
jmp 0x454b81
add eax, 4
add ecx, ecx
push ecx
push eax
push 0x1002
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x454b9f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x18c]
cmp ecx, ebx
jbe 0x454be3
lea eax, [esi + 0x178]
cmp dword [eax + 0x18], 8
jb 0x454bba
mov eax, dword [eax + 4]
jmp 0x454bbd
add eax, 4
add ecx, ecx
push ecx
push eax
push 0x1003
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x454be3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
jmp 0x454be3
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [ebp + 0x1088], bl
je 0x454c0f
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x3f
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 2
call edi
test eax, eax
jne 0x454c0f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 0x21], bl
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x454df3
push 0x10
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00430560
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x454dde
cmp dword [ebp - 0x58], ebx
je 0x454cfe
push 0x18
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00430560
mov ecx, dword [ebp - 0x58]
xor eax, eax
inc eax
push 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
call fcn.00430560
add esp, 0x18
cmp dword [esi + 0x20], 8
jb 0x454c95
mov eax, dword [esi + 0xc]
jmp 0x454c98
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x454da6
push 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x26
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x454cd9
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x454cd9
mov byte [ebp - 0x21], 1
cmp dword [ebp - 0x68], ebx
je 0x454ce7
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x64], ebx
je 0x454db2
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x454db2
cmp dword [ebp - 0x54], ebx
je 0x454dce
push 0xc
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00430560
xor eax, eax
push 0x206
mov word [ebp + 0xe70], ax
lea eax, [ebp + 0xe72]
push ebx
push eax
mov dword [ebp - 0x78], 3
call fcn.00430560
push dword [ebp - 0x54]
lea eax, [ebp + 0xe70]
push 0x104
push eax
call fcn.004304d7
add esp, 0x24
lea eax, [ebp + 0xe70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x50], ebx
je 0x454d95
xor eax, eax
push 0x206
mov word [ebp + 0xa60], ax
lea eax, [ebp + 0xa62]
push ebx
push eax
call fcn.00430560
push dword [ebp - 0x50]
lea eax, [ebp + 0xa60]
push 0x104
push eax
call fcn.004304d7
lea eax, [ebp + 0xa60]
add esp, 0x18
mov dword [ebp - 0x70], eax
push 0xc
lea eax, [ebp - 0x78]
push eax
push 0x26
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x454db2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [ebp - 0x58], ebx
je 0x454dc0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x54], ebx
je 0x454dce
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x50], ebx
je 0x454dea
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x454dea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [ebp - 0x21], bl
je 0x455483
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x454e24
lea ecx, [ebp - 0x1c]
push ecx
push dword [esi + 0xe0]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x454e24
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x455477
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x16
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x454e5e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4550f1
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f8d1
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x4550f1
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ebx
push edi
call fcn.00430560
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push 0x16
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4550e8
push dword [ebp - 0x1c]
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004052b0
lea ecx, [ebp - 0x44]
call fcn.0042ee07
push 0x4b16a0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00408320
mov byte [ebp - 4], 3
cmp byte [esi + 0x158], bl
jne 0x454f2a
push str.charset_A_Za_z0_9___
lea ecx, [ebp + 0x1c]
call fcn.004052b0
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.0045446b
add esp, 0x18
test al, al
je 0x454f2a
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x454f2a
push ebx
lea ecx, [ebp - 0x44]
call fcn.0045122c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x78]
call fcn.004057c0
push str.Content_Length:__0_9_
lea ecx, [ebp + 0x1c]
call fcn.004052b0
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.0045446b
add esp, 0x18
test al, al
je 0x454f84
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x454f84
push ebx
lea ecx, [ebp - 0x44]
call fcn.0045122c
cmp dword [eax + 0x18], 8
jb 0x454f74
mov eax, dword [eax + 4]
jmp 0x454f77
add eax, 4
push eax
call fcn.004304cc
pop ecx
mov dword [esi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [ebp + 0x1c]
call fcn.004052b0
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.0045446b
add esp, 0x18
test al, al
je 0x454fd2
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x454fd2
push ebx
lea ecx, [ebp - 0x44]
call fcn.0045122c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x194]
call fcn.004057c0
push str.Set_Cookie:_b.__n
lea ecx, [ebp + 0x1c]
call fcn.004052b0
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.0045446b
add esp, 0x18
test al, al
je 0x4550c9
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, ebx
jbe 0x4550c9
xor edi, edi
cmp eax, ebx
jbe 0x455060
push edi
lea ecx, [ebp - 0x44]
call fcn.0045122c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0xa4]
call fcn.004087f0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
dec eax
cmp edi, eax
je 0x45504f
push 0x4b5c00
lea ecx, [esi + 0xa4]
call fcn.004084d0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
inc edi
cmp edi, eax
jb 0x455016
sub esp, 0x1c
lea edi, [esi + 0xa4]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edi
call fcn.00408a60
lea eax, [ebp - 0xdc]
push eax
call fcn.00450948
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004057c0
push ebx
push 1
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.00405110
mov eax, dword [esi + 0xb8]
cmp eax, ebx
jbe 0x4550c9
dec eax
push eax
mov ecx, edi
call fcn.00422657
cmp word [eax], 0x3b
je 0x4550c9
push 0x4b5bfc
mov ecx, edi
call fcn.004084d0
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00405110
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0042ee34
push dword [ebp - 0x44]
call fcn.0042f8dc
pop ecx
push dword [ebp - 0x1c]
call fcn.00430546
pop ecx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x13
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x455115
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x45516c
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f8d1
mov edi, eax
pop ecx
cmp edi, ebx
je 0x45516c
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ebx
push edi
call fcn.00430560
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x455165
push edi
lea ecx, [esi + 0x120]
call fcn.004052b0
push edi
call fcn.00430546
pop ecx
mov eax, dword [esi + 0x94]
xor edi, edi
mov dword [ebp - 0x1c], 0x2800
cmp eax, ebx
je 0x45518c
push eax
call fcn.00430546
pop ecx
mov dword [esi + 0x94], ebx
push 0x2800
call fcn.0042f8d1
pop ecx
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x45548e
push 0x2800
push ebx
push eax
call fcn.00430560
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x45528e
push edi
mov ecx, esi
call fcn.00451185
mov eax, dword [ebp - 0x20]
inc eax
push eax
call fcn.0042f8d1
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x45529a
mov eax, dword [ebp - 0x20]
inc eax
push eax
push ebx
push dword [ebp - 0x2c]
call fcn.00430560
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x455283
mov eax, dword [ebp - 0x4c]
add eax, edi
cmp eax, dword [ebp - 0x1c]
jbe 0x455269
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
mov dword [ebp - 0x1c], eax
call fcn.0042f8d1
pop ecx
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x4552a5
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00430560
push edi
push dword [ebp - 0x28]
push dword [esi + 0x94]
call fcn.004335c0
push dword [ebp - 0x28]
call fcn.00430546
add esp, 0x1c
push dword [ebp - 0x4c]
mov eax, dword [esi + 0x94]
push dword [ebp - 0x2c]
add eax, edi
push eax
call fcn.004335c0
add esp, 0xc
add edi, dword [ebp - 0x4c]
push dword [ebp - 0x2c]
call fcn.00430546
pop ecx
jmp 0x45529a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [ebp - 0x20], ebx
ja 0x4551b4
jmp 0x4552b1
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x94], eax
mov byte [ebp - 0x15], bl
push edi
mov ecx, esi
call fcn.00451185
mov dword [esi + 0x98], edi
cmp dword [esi + 0x90], 8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 1
jb 0x4552d7
mov eax, dword [esi + 0x7c]
jmp 0x4552da
lea eax, [esi + 0x7c]
push 5
push str.utf_8
push eax
call fcn.00445cc1
add esp, 0xc
test eax, eax
jne 0x4552f8
mov dword [ebp - 0x28], 0xfde9
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi + 0x98]
push ebx
push ebx
inc eax
push eax
push dword [esi + 0x94]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
cmp edi, ebx
jg 0x455341
mov ecx, dword [esi + 0x98]
push ebx
xor eax, eax
inc eax
push ebx
inc ecx
push ecx
push dword [esi + 0x94]
mov dword [ebp - 0x28], ebx
push eax
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
cmp edi, ebx
jle 0x4553a5
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f8d1
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4553a5
lea eax, [edi + edi]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00430560
mov eax, dword [esi + 0x98]
add esp, 0xc
push edi
push dword [ebp - 0x1c]
inc eax
push eax
push dword [esi + 0x94]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
jle 0x45539c
push dword [ebp - 0x1c]
lea ecx, [esi + 0x5c]
call fcn.004052b0
push dword [ebp - 0x1c]
call fcn.00430546
pop ecx
push 0x4b5ce4
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
call fcn.0044f4e5
test eax, eax
jne 0x455499
cmp byte [ebp + 0x1088], bl
jne 0x455499
push str._html_
lea ecx, [ebp + 0x1c]
call fcn.00408320
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.0042ee07
push ebx
lea eax, [ebp - 0x44]
push eax
lea edi, [esi + 0x5c]
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.0045446b
add esp, 0x18
test al, al
je 0x455456
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x455456
push str.__html_
lea ecx, [ebp + 0x1c]
call fcn.004052b0
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push 1
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.0045446b
add esp, 0x18
test al, al
je 0x455449
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
ja 0x455456
mov dword [esi + 0x11c], 0xd
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x44]
call fcn.0042ee34
push dword [ebp - 0x44]
call fcn.0042f8dc
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00405110
jmp 0x455483
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [ebp - 0xd], bl
je 0x454a16
jmp 0x455491
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0xd], bl
jne 0x455499
mov byte [ebp - 0x15], bl
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
push 1
lea ecx, [ebp]
call fcn.00405110
mov al, byte [ebp - 0x15]
jmp 0x4554d2
mov dword [esi + 0x11c], 0x57
push ebx
push 1
lea ecx, [ebp]
call fcn.00405110
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1078]
xor ecx, ebp
call fcn.0043039d
add ebp, 0x107c
leave
ret 8