Function at 0x4a8e10
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x15c
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x4a98ed
mov edx, dword [esp + 0x168]
cmp edx, 0x400
jb 0x4a98ed
cmp dword [ecx], 0x464d4444
jne 0x4a98ed
mov al, byte [ecx + 4]
test al, al
je 0x4a98ed
test al, 0xf0
jne 0x4a98ed
mov dword [esp + 0xc], 0x42
lea eax, [ebp + 0xe99c]
mov dword [esp + 0x48], eax
push esi
lea esi, [ecx + 0xd]
mov ecx, 7
push edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp + 0xe9ba], 0
mov dword [ebp + 0xe920], 0x20000
mov dword [ebp + 0xe910], 0
cmp edx, 0x49
jbe 0x4a98cf
push ebx
mov esi, 0x42
lea ebx, [ebx]
mov edi, dword [esp + 0x170]
mov eax, dword [esi + edi]
lea ecx, [esi + edi]
mov dword [esp + 0x20], ecx
cmp eax, 0x49504d53
ja 0x4a913d
je 0x4a8fd7
cmp eax, 0x44504d53
je 0x4a8ef7
cmp eax, 0x45444e45
je 0x4a98ce
cmp eax, 0x47534d43
je 0x4a97f2
add esi, 4
jmp 0x4a98bf
add esi, 8
mov edi, 1
mov dword [esp + 0x18], esi
cmp dword [ebp + 0xe924], edi
jb 0x4a98c3
mov edx, dword [esp + 0x1c]
lea ebp, [esp + 0x7c]
mov ecx, dword [esp + 0x170]
lea ebx, [edx + 0x8262]
jmp 0x4a8f30
lea eax, [esi + 4]
lea ebp, [ebp + 1]
cmp eax, dword [esp + 0x174]
jae 0x4a8fc7
mov esi, dword [esi + ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x174]
sub eax, dword [esp + 0x18]
cmp esi, eax
jbe 0x4a8f5b
mov esi, eax
test esi, esi
je 0x4a8faf
cmp edi, dword [edx + 0xe924]
ja 0x4a8faf
movzx edx, word [ebx]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 5
test byte [ebp], 4
je 0x4a8f89
mov ecx, edx
and ecx, 1
shl ecx, 2
or ecx, 0x13
mov eax, dword [esp + 0x170]
add eax, dword [esp + 0x18]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [ebx - 0x22]
push eax
call fcn.004960e0
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x18], esi
inc edi
mov esi, dword [esp + 0x18]
add ebx, 0x40
cmp edi, dword [edx + 0xe924]
jbe 0x4a8f30
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x174]
jmp 0x4a98c3
mov eax, edx
sub eax, esi
cmp dword [ecx + 4], eax
ja 0x4a9132
movzx eax, byte [ecx + 8]
lea edx, [esi + 9]
mov dword [ebp + 0xe924], eax
cmp eax, 0xf0
jb 0x4a9002
mov dword [ebp + 0xe924], 0xef
mov ebx, 1
cmp dword [ebp + 0xe924], ebx
jb 0x4a912b
mov esi, dword [esp + 0x1c]
lea ebp, [ebx + 0x1f]
add esi, 0x8248
movzx edi, byte [edx + edi]
mov byte [esp + ebx + 0x7c], 0
lea eax, [edi + edx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
add ecx, 8
add ecx, eax
mov eax, dword [esp + 0x28]
add eax, 0x11
cmp eax, ecx
ja 0x4a911f
test edi, edi
je 0x4a9085
cmp edi, 0x20
jb 0x4a9059
mov edi, 0x1f
mov eax, dword [esp + 0x170]
inc eax
add eax, edx
push edi
push eax
mov eax, dword [esp + 0x5c]
add eax, ebp
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esp + 0x28]
lea eax, [edi + ebp]
add esp, 0xc
mov byte [eax + ecx + 0xe99c], 0
jmp 0x4a9089
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x170]
mov edx, dword [esp + 0x28]
inc edx
mov eax, dword [edx + edi]
mov dword [esi - 8], eax
mov eax, dword [edx + edi + 4]
mov dword [esi - 4], eax
mov eax, dword [edx + edi + 8]
mov dword [esi], eax
movzx eax, word [edx + edi + 0xc]
mov dword [esi + 0x10], eax
mov eax, 0x40
mov word [esi + 0x18], ax
mov al, byte [edx + edi + 0xe]
test al, al
je 0x4a90c7
movzx eax, al
inc eax
jmp 0x4a90cc
mov eax, 0x100
mov word [esi + 0x16], ax
mov al, byte [edx + edi + 0xf]
shr al, 1
and al, 1
movzx eax, al
mov word [esi + 0x1a], ax
test al, 1
je 0x4a90e6
shr dword [esi - 8], 1
test byte [edx + edi + 0xf], 1
je 0x4a90f2
or word [esi + 0x1a], 2
mov al, byte [edx + edi + 0xf]
cmp byte [edi + 4], 8
mov byte [esp + ebx + 0x7c], al
sbb eax, eax
inc ebx
and eax, 0xfffffff8
add esi, 0x40
add eax, 0x1e
add ebp, 0x20
add edx, eax
cmp ebx, dword [ecx + 0xe924]
mov ecx, dword [esp + 0x20]
jbe 0x4a9020
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x174]
add esi, 8
add esi, dword [ecx + 4]
jmp 0x4a98bf
cmp eax, 0x4f464e49
je 0x4a97eb
cmp eax, 0x54544150
je 0x4a91d7
cmp eax, 0x55514553
je 0x4a9162
add esi, 4
jmp 0x4a98bf
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x174]
cmp edx, ebx
jae 0x4a98ce
lea eax, [esi + 0xc]
add eax, edx
cmp eax, ebx
ja 0x4a98ce
shr edx, 1
cmp edx, 0xff
jb 0x4a9190
mov edx, 0xff
movzx eax, word [ecx + 8]
cmp eax, edx
jae 0x4a919e
mov dword [ebp + 0xe958], eax
mov ebx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
je 0x4a91c5
lea esi, [ebx + 0xc]
jmp 0x4a91b0
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [ecx + ebp + 0xd060], al
inc ecx
cmp ecx, edx
jb 0x4a91b0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x174]
add esi, 8
add esi, dword [ebx + 4]
jmp 0x4a98bf
cmp dword [ebp + 0xe910], 0
jne 0x4a98c3
mov eax, dword [ecx + 4]
lea ebx, [esi + 0xb]
cmp eax, edx
jae 0x4a98ce
add eax, 8
add eax, esi
cmp eax, edx
ja 0x4a98ce
movzx edx, word [ecx + 8]
mov dword [esp + 0x28], edx
cmp edx, 0xf0
jbe 0x4a9217
mov dword [esp + 0x28], 0xf0
movzx eax, byte [ecx + 0xa]
mov dword [ebp + 0xe910], eax
movzx ecx, byte [ecx + 0xb]
cmp eax, ecx
jae 0x4a922f
mov dword [ebp + 0xe910], ecx
mov eax, dword [ebp + 0xe910]
cmp eax, 0x20
jbe 0x4a9246
mov dword [ebp + 0xe910], 0x20
jmp 0x4a9255
cmp eax, 4
jae 0x4a9255
mov dword [ebp + 0xe910], 4
xor edx, edx
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x28], edx
jbe 0x4a97d5
mov esi, dword [esp + 0x174]
lea esp, [esp]
movzx eax, byte [edi + ebx]
add edi, ebx
mov dword [esp + 0x3c], eax
cmp eax, 0x20
jbe 0x4a9287
mov dword [esp + 0x3c], 0x20
movzx ecx, word [edi + 2]
mov dword [esp + 0x34], ecx
cmp ecx, 0x100
jbe 0x4a929e
mov ecx, 0x100
jmp 0x4a92a8
cmp ecx, 0x10
jae 0x4a92ac
mov ecx, 0x10
mov dword [esp + 0x34], ecx
mov eax, dword [edi + 4]
add ebx, 8
cmp eax, esi
jae 0x4a97d1
add eax, 4
add eax, ebx
cmp eax, esi
jae 0x4a97d1
mov word [ebp + edx*2 + 0xce80], cx
push dword [ebp + 0xe910]
movzx eax, cx
push eax
call fcn.00495350
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
je 0x4a98ce
mov ecx, dword [esp + 0x4c]
mov esi, ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], 0x7d
mov dword [esp + 0x40], 0
mov dword [ebp + ecx*4 + 0xcac0], eax
mov cl, byte [edi + 1]
add ebx, dword [edi + 4]
mov al, cl
mov dword [esp + 0x48], ebx
and al, 0xf0
je 0x4a932e
movzx ecx, cl
shr ecx, 4
mov dword [esp + 0x44], ecx
jmp 0x4a9336
mov dword [esp + 0x44], 8
xor ecx, ecx
test al, al
setne cl
xor eax, eax
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], edx
cmp dword [esp + 0x34], eax
jbe 0x4a97a9
mov eax, dword [ebp + 0xe910]
mov edi, dword [esp + 0x40]
imul eax, edx
mov edx, dword [esp + 0x58]
lea eax, [eax + eax*2]
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x170]
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x4a9410
mov al, byte [esi + edx]
xor cl, cl
inc esi
test al, al
jns 0x4a93b0
cmp esi, ebx
jae 0x4a93b0
movzx edi, byte [esi + edx]
inc esi
mov dword [esp + 0x40], edi
and al, 0x7f
je 0x4a93bc
cmp esi, ebx
jae 0x4a93bc
mov cl, byte [esi + edx]
inc esi
movzx eax, al
dec eax
je 0x4a93f6
dec eax
je 0x4a93dc
dec eax
jne 0x4a9417
movzx eax, cl
mov ecx, dword [esp + 0x30]
shr eax, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
jmp 0x4a941b
movzx eax, cl
mov ecx, 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
jmp 0x4a941b
movzx eax, cl
mov ecx, 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
jmp 0x4a941b
dec edi
mov dword [esp + 0x40], edi
jmp 0x4a941f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp dword [esp + 0x3c], edi
jbe 0x4a96d9
mov ebp, eax
jmp 0x4a9437
mov edx, dword [esp + 0x170]
mov al, byte [esp + edi + 0x5c]
test al, al
jne 0x4a96bd
mov bl, byte [esi + edx]
xor cl, cl
xor ch, ch
mov dword [esp + 0x10], 0
inc esi
mov word [esp + 0x14], 0
test bl, bl
jns 0x4a9466
mov al, byte [esi + edx]
inc esi
mov byte [esp + edi + 0x5c], al
test bl, 0x40
je 0x4a9473
mov al, byte [esi + edx]
inc esi
mov byte [esp + 0x11], al
test bl, 0x20
je 0x4a94a0
mov cl, byte [esi + edx]
inc esi
mov byte [esp + 0x10], cl
test cl, cl
je 0x4a94a0
cmp cl, 0xfe
jae 0x4a9490
and cl, 0x7f
mov byte [esp + 0x10], cl
test cl, cl
je 0x4a94a0
cmp cl, 0x80
jae 0x4a94a0
add cl, 0x18
mov byte [esp + 0x10], cl
test bl, 0x10
je 0x4a94ba
movzx eax, byte [esi + edx]
mov ch, 1
add eax, 3
mov byte [esp + 0x12], ch
sar eax, 2
inc esi
mov byte [esp + 0x14], al
test bl, 8
je 0x4a951d
mov al, byte [esi + edx]
mov dl, byte [esi + edx + 1]
add esi, 2
movzx eax, al
dec eax
cmp eax, 5
ja case.0x4a94d2.2
jmp dword [eax*4 + 0x4a9914]
mov edx, dword [esp + 0x170]
test cl, cl
jne 0x4a951d
mov cl, 0xfe
mov byte [esp + 0x10], cl
jmp 0x4a951d
test dl, 0xe0
je case.0x4a94d2.2
shr dl, 5
mov byte [esp + 0x13], 0x14
or dl, 0xd0
jmp 0x4a9512
test dl, 0xe0
je case.0x4a94d2.2
mov byte [esp + 0x13], 0xf
shr dl, 5
jmp 0x4a9512
mov byte [esp + 0x13], 0xa
mov byte [esp + 0x15], dl
mov edx, dword [esp + 0x170]
test bl, 4
je case.0x4a953d.7
mov al, byte [esi + edx]
mov dl, byte [esi + edx + 1]
add esi, 2
movzx eax, al
dec eax
cmp eax, 0xb
ja case.0x4a953d.7
jmp dword [eax*4 + 0x4a992c]
test dl, 0xf0
je case.0x4a953d.7
shr dl, 4
or dl, 0x20
mov byte [esp + 0x13], 0x14
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
test dl, 0xe0
je case.0x4a953d.7
shr dl, 5
or dl, 0xd0
mov byte [esp + 0x13], 0x14
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
test dl, dl
je case.0x4a953d.7
mov byte [esp + 0x13], 1
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
mov byte [esp + 0x13], 2
cmp dl, 0xe0
jb 0x4a95ce
mov byte [esp + 0x15], 0xdf
jmp case.0x4a953d.7
mov byte [esp + 0x13], 3
cmp dl, 0xe0
jb 0x4a95ce
mov byte [esp + 0x15], 0xdf
jmp case.0x4a953d.7
mov byte [esp + 0x13], 4
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
mov byte [esp + 0x13], 5
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
test dl, 0xe0
je 0x4a95d4
shr dl, 5
mov byte [esp + 0x13], 0x14
or dl, 0xc0
mov byte [esp + 0x15], dl
jmp case.0x4a953d.7
test cl, cl
jne case.0x4a953d.7
mov byte [esp + 0x10], 0xfe
test bl, 2
je case.0x4a9604.3
mov edx, dword [esp + 0x170]
mov al, byte [esi + edx]
mov cl, byte [esi + edx + 1]
add esi, 2
movzx eax, al
dec eax
cmp eax, 8
ja case.0x4a9604.3
jmp dword [eax*4 + 0x4a995c]
cmp cl, 0xff
je case.0x4a9604.3
movzx eax, cl
add eax, 3
sar eax, 2
cmp al, 0xf
jbe 0x4a9623
mov al, 0xf
mov byte [esp + 0x13], 0xb
shl al, 4
jmp 0x4a9693
cmp cl, 0xff
je case.0x4a9604.3
movzx eax, cl
add eax, 3
sar eax, 2
cmp al, 0xf
jbe 0x4a9641
mov al, 0xf
mov byte [esp + 0x13], 0xb
jmp 0x4a9693
test ch, ch
jne 0x4a9660
movzx eax, cl
add eax, 3
mov byte [esp + 0x12], 2
sar eax, 2
mov byte [esp + 0x14], al
jmp case.0x4a9604.3
mov byte [esp + 0x13], 9
mov byte [esp + 0x15], cl
jmp case.0x4a9604.3
movzx eax, cl
add eax, 3
sar eax, 2
cmp al, 0xf
jbe 0x4a967a
mov al, 0xf
shl al, 4
jmp 0x4a968e
movzx eax, cl
add eax, 3
sar eax, 2
cmp al, 0xf
jbe 0x4a968e
mov al, 0xf
mov byte [esp + 0x13], 0x1d
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 0xe910]
jae 0x4a96b3
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov ax, word [esp + 0x14]
mov word [ebp + 4], ax
mov ebx, dword [esp + 0x48]
cmp esi, ebx
ja 0x4a96d1
jmp 0x4a96c3
dec al
mov byte [esp + edi + 0x5c], al
inc edi
add ebp, 6
cmp edi, dword [esp + 0x3c]
jb 0x4a9430
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4a9792
cmp dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
je 0x4a9701
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a9701
mov edi, eax
imul edi, dword [esp + 0x38]
jmp 0x4a970d
mov eax, dword [esp + 0x38]
inc eax
mov edi, eax
shl edi, 4
sub edi, eax
mov ecx, edi
mov ebx, 0x1e
shl ecx, 4
sub ecx, edi
add ecx, ecx
jmp 0x4a9720
mov eax, 0xaaaaaaab
mul ecx
shr edx, 4
cmp edx, 0xc8
jbe 0x4a9747
cmp ebx, 6
jae 0x4a973f
cmp edx, 0x100
jb 0x4a9747
dec ebx
sub ecx, edi
cmp ebx, 1
ja 0x4a9720
xor edi, edi
cmp dword [ebp + 0xe910], edi
jbe 0x4a978a
mov eax, dword [esp + 0x2c]
add eax, 3
cmp byte [eax], 0
jne 0x4a977e
test ebx, ebx
je 0x4a976b
mov byte [eax + 2], bl
xor ebx, ebx
mov byte [eax], 0x10
jmp 0x4a977e
lea ecx, [edx - 0x20]
cmp ecx, 0xdf
ja 0x4a978a
mov byte [eax + 2], dl
xor edx, edx
mov byte [eax], 0x11
inc edi
add eax, 6
cmp edi, dword [ebp + 0xe910]
jb 0x4a9758
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
cmp esi, ebx
jae 0x4a97a9
mov edx, dword [esp + 0x50]
inc edx
mov dword [esp + 0x50], edx
cmp edx, dword [esp + 0x34]
jb 0x4a9373
mov esi, dword [esp + 0x174]
lea eax, [ebx + 8]
cmp eax, esi
jae 0x4a97d1
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x170]
inc edx
mov dword [esp + 0x4c], edx
cmp edx, dword [esp + 0x28]
jb 0x4a9270
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x174]
mov eax, dword [ebx + 4]
add eax, 8
jmp 0x4a98bd
cmp eax, 0x47534d43
jne 0x4a97f7
inc esi
mov dword [esp + 0x18], esi
mov ecx, dword [ecx + 4]
cmp ecx, edx
ja 0x4a98ce
lea eax, [esi + 8]
add eax, ecx
cmp eax, edx
ja 0x4a98ce
cmp ecx, 8
jb 0x4a98b3
cmp dword [ebp + 0xe994], 0
jne 0x4a98b3
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp + 0xe994], eax
test eax, eax
je 0x4a98ac
mov ebx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [ebx + 4]
dec eax
je 0x4a9896
add edi, dword [esp + 0x18]
jmp 0x4a9850
mov bl, byte [edi + esi + 8]
mov eax, 0xcccccccd
mul esi
mov eax, esi
shr edx, 5
lea ecx, [edx + edx*4]
shl ecx, 3
sub eax, ecx
cmp eax, 0x27
jne 0x4a9879
mov eax, dword [ebp + 0xe994]
mov byte [esi + eax], 0xd
jmp 0x4a9889
cmp bl, 0x20
jge 0x4a9880
mov bl, 0x20
mov eax, dword [ebp + 0xe994]
mov byte [esi + eax], bl
mov eax, dword [esp + 0x20]
inc esi
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
jb 0x4a9850
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xe994]
mov esi, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov byte [ecx + eax - 1], 0
mov edx, dword [esp + 0x174]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
add eax, 7
add esi, eax
mov dword [esp + 0x18], esi
lea eax, [esi + 7]
cmp eax, edx
jb 0x4a8eb0
pop ebx
cmp dword [ebp + 0xe910], 0
pop edi
pop esi
jne 0x4a9903
cmp dword [ebp + 0xe924], 0
jne 0x4a98f9
mov dword [ebp + 0xe920], 0
xor eax, eax
pop ebp
add esp, 0x15c
ret 8
mov dword [ebp + 0xe910], 4
mov eax, 1
pop ebp
add esp, 0x15c
ret 8