Function at 0x10025540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
mov ebx, ecx
push edi
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10025564
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
mov cl, byte [esi + 0xc]
mov dword [esp + 0x20], 0x1005bdb0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x2c], 0
mov byte [esp + 0x48], cl
cmp cl, 1
jne 0x100255a6
push 2
mov ecx, esi
call fcn.100045e0
mov al, byte [esi + 0xc]
mov byte [esp + 0x48], al
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov ebp, dword [sym.imp.msvcrt.dll__strnicmp]
mov edi, edi
add eax, edx
mov edi, edx
cmp edx, eax
jae 0x100255ce
jmp 0x100255c0
cmp byte [edi], 0xa
je 0x1002564b
inc edi
cmp edi, eax
jb 0x100255c0
cmp byte [esp + 0x4c], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
je 0x10025ac9
cmp dword [eax + ebx + 0x90], 0
jne 0x10025978
mov ecx, dword [eax + ebx + 0x7c]
lea esi, [ebx + 0x8c]
mov edi, dword [eax + ebx + 0x80]
add esi, eax
mov al, byte [eax + ebx + 0x88]
mov dword [esp + 0x4c], ecx
mov byte [esi + 0xc], al
test edi, edi
jle 0x10025947
lea eax, [edi + 1]
cmp dword [esi + 8], eax
jae 0x10025632
push eax
mov ecx, esi
call fcn.100035c0
test eax, eax
je 0x10025947
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi]
push edi
push ecx
mov dword [esi + 4], edi
push eax
mov byte [eax + edi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10025953
sub edi, edx
add edi, 1
je 0x100255ce
lea ecx, [edi + edx]
mov eax, edx
mov dword [esp + 0x1c], ecx
cmp edx, ecx
jae 0x10025934
cmp byte [eax], 0x3a
je 0x10025684
inc eax
cmp eax, ecx
jb 0x10025667
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x100255b0
sub eax, edx
js 0x10025934
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
mov esi, ecx
cmp ecx, edi
jae 0x100256b3
lea esp, [esp]
movzx ecx, byte [esi + edx]
test byte [ecx*2 + 0x10052120], 1
je 0x100256b3
inc esi
cmp esi, edi
jb 0x100256a0
or ecx, 0xffffffff
cmp esi, dword [esp + 0x10]
cmova ecx, esi
mov esi, dword [esp + 0x10]
test ecx, ecx
cmovg esi, ecx
lea ecx, [esi + edx]
mov dword [esp + 0x18], ecx
mov ecx, edi
sub ecx, esi
cmp byte [esp + 0x4c], 0
mov dword [esp + 0x10], ecx
je 0x100257d8
cmp eax, 0xc
jne 0x10025701
push eax
push str.Content_Type
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0x7c]
jmp 0x100258d9
cmp eax, 0x10
jne 0x10025725
push eax
push str.Content_Encoding
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xc8]
jmp 0x100258e1
cmp eax, 0x13
jne 0x10025749
push eax
push str.Content_Disposition
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xd8]
jmp 0x100258e1
cmp eax, 0xe
jne 0x1002576d
push eax
push str.Content_Length
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xe8]
jmp 0x100258e1
cmp eax, 8
jne 0x1002578e
push eax
push str.Location
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0x1c]
jmp 0x100258d9
cmp eax, 0xd
jne 0x100257b2
push eax
push str.Content_Range
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xbc]
jmp 0x100258d9
cmp eax, 0x11
jne 0x10025934
push eax
push str.Transfer_Encoding
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [esp + 0x20]
jmp 0x100258e1
cmp eax, 0xd
jne 0x10025826
push eax
push str.Authorization
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
lea eax, [ebx + 0x4c]
add eax, esi
push eax
lea eax, [ebx + 0x3c]
add eax, esi
push eax
call fcn.10009ea0
mov eax, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x1c]
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x100255b0
cmp eax, 4
jne 0x1002584a
push eax
push str.Host
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xac]
jmp 0x100258e1
cmp eax, 7
jne 0x10025868
push eax
push str.Referer
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xc]
jmp 0x100258d9
cmp eax, 6
jne 0x10025886
push eax
push str.Cookie
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0x2c]
jmp 0x100258d9
cmp eax, 0xa
jne 0x100258a4
push eax
push str.User_Agent
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0x5c]
jmp 0x100258d9
cmp eax, 0xc
jne 0x100258be
push eax
push str.Content_Type
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0x6c]
jmp 0x100258d9
cmp eax, 5
jne 0x10025934
push eax
push str.Range
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10025934
lea esi, [ebx + 0xac]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
add esi, eax
mov al, byte [esp + 0x48]
mov ecx, dword [esp + 0x10]
mov byte [esi + 0xc], al
test ecx, ecx
jle 0x10025921
lea eax, [ecx + 1]
cmp dword [esi + 8], eax
jae 0x10025908
push eax
mov ecx, esi
call fcn.100035c0
test eax, eax
je 0x10025921
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push dword [esp + 0x1c]
mov dword [esi + 4], ecx
push eax
mov byte [eax + ecx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1002592d
mov eax, dword [esi]
mov dword [esi + 4], 0
mov byte [eax], 0
mov ecx, esi
call fcn.10003ff0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x100255b0
mov eax, dword [esi]
mov dword [esi + 4], 0
mov byte [eax], 0
mov ecx, esi
call fcn.10009540
mov edi, dword [sym.imp.msvcrt.dll__strlwr]
test al, al
je 0x1002597e
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
push dword [eax + ebx + 0x8c]
call edi
add esp, 4
jmp 0x1002597e
mov edi, dword [sym.imp.msvcrt.dll__strlwr]
mov eax, dword [ebx + 4]
lea edx, [ebx + 0x7c]
push 0
push str.charset
lea ecx, [esp + 0x38]
mov eax, dword [eax + 0xc]
add edx, eax
call fcn.100095b0
mov esi, eax
push dword [esi]
call edi
mov ecx, dword [ebx + 4]
add esp, 0xc
mov edi, dword [sym.imp.msvcrt.dll_free]
mov ecx, dword [ecx + 0xc]
add ecx, 0x9c
add ecx, ebx
mov dword [esp + 0x4c], ecx
mov eax, dword [ecx]
cmp eax, 0x1005bdb0
je 0x100259cd
push eax
call edi
mov ecx, dword [esp + 0x50]
add esp, 4
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov al, byte [esi + 0xc]
mov byte [ecx + 0xc], al
mov dword [esi], 0x1005bdb0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x10025a08
push eax
call edi
add esp, 4
cmp byte [ebx + 0x70], 5
jae 0x10025b48
mov ecx, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
mov eax, ecx
or eax, dword [esi + 4]
je 0x10025a33
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + ebx + 0xb0], 0
jne 0x10025b48
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0xc]
cmp dword [eax + ebx + 0xc0], 0
je 0x10025a50
push esi
mov ecx, ebx
call fcn.10025b70
jmp 0x10025b48
or ecx, dword [esi + 4]
jne 0x10025b48
cmp dword [ebx + 0xec], ecx
je 0x10025b48
cmp dword [eax + ebx + 0x90], 0x14
jne 0x10025a8a
push 0x14
push str.multipart_byteranges
push dword [eax + ebx + 0x8c]
call ebp
add esp, 0xc
test eax, eax
je 0x10025b48
cmp dword [esp + 0x24], 7
jne 0x10025aad
push 7
push str.chunked
push dword [esp + 0x28]
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10025b48
push ecx
push dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe8]
mov edx, esi
call fcn.1000af80
add esp, 8
jmp 0x10025b48
push 0
lea edx, [ebx + 0x6c]
push str.charset
add edx, eax
lea ecx, [esp + 0x38]
call fcn.100095b0
mov esi, eax
push dword [esi]
call dword [sym.imp.msvcrt.dll__strlwr]
mov ecx, dword [ebx + 4]
add esp, 0xc
mov edi, dword [sym.imp.msvcrt.dll_free]
mov ecx, dword [ecx + 8]
add ebx, ecx
mov eax, dword [ebx + 0x74]
cmp eax, 0x1005bdb0
je 0x10025b09
push eax
call edi
add esp, 4
mov eax, dword [esi]
mov dword [ebx + 0x74], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x7c], eax
mov al, byte [esi + 0xc]
mov byte [ebx + 0x80], al
mov dword [esi], 0x1005bdb0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x10025b48
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 0x1005bdb0
je 0x10025b59
push eax
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x34
ret 8