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

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea esi, [ebp + 0x50]
mov edi, edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
mov ecx, dword [edi]
push ecx
push 0xa
push eax
call fcn.0052c0b0
add esp, 0xc
mov dword [esi + 0x64], eax
mov ebx, ebp
test eax, eax
je 0x502fa2
sub eax, dword [esi + 0x5c]
lea edi, [eax + 1]
mov eax, dword [esp + 0x2c]
sub dword [eax], edi
mov eax, dword [esi + 0x64]
inc eax
mov dword [esi + 0x5c], eax
sub eax, dword [esi + 0x60]
push eax
call fcn.00500480
add esp, 4
test eax, eax
jne 0x50312b
cmp dword [esi + 0x50], 0
mov edx, dword [esi + 0x54]
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x64], edx
mov eax, dword [ebp + 0x5c4]
mov dword [esi + 0x68], eax
jne 0x50231d
cmp dword [esi + 0x58], 5
jbe 0x50231d
mov ecx, dword [ebx + 0x2c0]
test dword [ecx + 0x3c], 0x40000
mov eax, dword [ebp + 0x5c4]
je 0x502308
push 5
push eax
push str.RTSP_
call fcn.004ea880
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x502315
mov ebx, eax
mov eax, ebp
call fcn.005003e0
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x502ff5
mov eax, dword [esi + 0x68]
mov cl, byte [eax]
cmp cl, 0xa
je 0x502d6c
cmp cl, 0xd
je 0x502d71
mov ecx, dword [esi + 0x50]
lea edx, [ecx + 1]
mov dword [esi + 0x50], edx
test ecx, ecx
jne 0x502539
mov ecx, dword [ebx + 0x2c0]
mov ecx, dword [ecx + 0x3c]
test cl, 3
je 0x5023c9
mov edi, dword [esp + 0x28]
lea ebp, [esi + 0x78]
push ebp
add edi, 0x13c
push edi
lea edx, [esp + 0x18]
push edx
push str._HTTP__d._d__3d
push eax
call fcn.00530938
add esp, 0x14
cmp eax, 3
jne 0x50238a
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
add eax, eax
add dword [edi], eax
jmp 0x502417
mov ecx, dword [esi + 0x68]
push ebp
push str._HTTP__3d
push ecx
call fcn.00530938
add esp, 0xc
mov dword [edi], 0xa
test eax, eax
jne 0x502417
mov ebx, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
call fcn.005003e0
test eax, eax
je 0x50303f
mov dword [ebp], 0xc8
mov dword [edi], 0xa
jmp 0x502417
test ecx, 0x40000
je 0x50303f
lea ebp, [esi + 0x78]
push ebp
lea edi, [ebx + 0x140]
push edi
lea edx, [esp + 0x1c]
push edx
push str._RTSP__d._d__3d
push eax
call fcn.00530938
add esp, 0x14
cmp eax, 3
jne 0x50303f
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
add eax, eax
add dword [edi], eax
mov edi, dword [esp + 0x28]
add edi, 0x13c
mov dword [edi], 0xb
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebp]
mov eax, dword [ebx + 0x8730]
mov dword [ebx + 0x8794], ecx
mov edx, dword [edi]
mov dword [ebx + 0x879c], edx
test eax, eax
je 0x50243a
cmp eax, dword [edi]
jle 0x502442
mov eax, dword [edi]
mov dword [ebx + 0x8730], eax
cmp dword [ebx + 0x300], 0
je 0x5024a7
mov eax, dword [ebp]
cmp eax, 0x190
jl 0x5024a7
cmp eax, 0x191
jne 0x502469
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x25c], 0
jne 0x5024a7
cmp eax, 0x197
jne 0x50247d
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x260], 0
jne 0x5024a7
mov ecx, dword [ebx + 0x8758]
or ecx, dword [ebx + 0x875c]
je 0x503029
cmp dword [ebx + 0x268], 1
jne 0x503029
cmp eax, 0x1a0
jne 0x503029
mov edi, dword [edi]
cmp edi, 0xa
jne 0x5024cc
push str.HTTP_1.0__assume_close_after_body_n
push ebx
call fcn.004e4180
mov edx, dword [esp + 0x30]
add esp, 8
mov dword [edx + 0x24c], 1
jmp 0x502500
cmp edi, 0xb
jl 0x502500
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x24c], 0
jne 0x502500
mov ecx, eax
mov edi, dword [ecx + 0x610]
test edi, edi
je 0x502500
mov edx, eax
push edx
push ebx
call fcn.00508000
add esp, 8
test eax, eax
jne 0x502500
mov dword [edi], 1
mov ebp, dword [ebp]
sub ebp, 0xcc
je 0x502510
sub ebp, 0x64
jne 0x502539
xor eax, eax
cmp dword [ebx + 0x258], eax
je 0x502524
mov dword [ebx + 0x87a4], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xb4], 1
cmp dword [esi + 0xb4], 0
mov edi, dword [esp + 0x24]
jne 0x5025ed
cmp dword [edi + 0x360], 0
jne 0x5025ed
mov eax, dword [esi + 0x68]
push 0xf
push eax
push str.Content_Length:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5025ed
mov ecx, dword [esi + 0x68]
push 0xa
add ecx, 0xf
push 0
push ecx
call fcn.0053121c
mov ebx, dword [edi + 0x2c8]
mov ecx, dword [edi + 0x2cc]
mov ebp, ebx
add esp, 0xc
or ebp, ecx
je 0x5025a5
cmp edx, ecx
jg 0x503050
jl 0x5025a5
cmp eax, ebx
ja 0x503050
test edx, edx
jl 0x5025ca
jg 0x5025af
test eax, eax
jb 0x5025ca
push edx
push eax
push edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.004ec820
add esp, 0xc
jmp 0x502cf6
mov ecx, dword [esp + 0x28]
push edx
push eax
push str.Negative_content_length:__I64d__closing_after_transfer_n
push edi
mov dword [ecx + 0x24c], 1
call fcn.004e4180
add esp, 0x10
jmp 0x502cf6
mov edx, dword [esi + 0x68]
push 0xd
push edx
push str.Content_Type:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502658
mov eax, dword [esi + 0x68]
push eax
call fcn.004ff460
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x50306b
cmp byte [ebp], 0
jne 0x50262f
push ebp
call dword [0x5ba020]
add esp, 4
jmp 0x502cf6
mov eax, dword [edi + 0x87bc]
test eax, eax
je 0x50264d
push eax
call dword [0x5ba020]
add esp, 4
mov dword [edi + 0x87bc], 0
mov dword [edi + 0x87bc], ebp
jmp 0x502cf6
mov ecx, dword [esi + 0x68]
push 7
push ecx
push str.Server:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5026c1
mov edx, dword [esi + 0x68]
push edx
call fcn.004ff460
mov ebx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [ebx + 0x610]
add esp, 4
test eax, eax
je 0x5026aa
cmp dword [eax], 0
je 0x5026aa
push ebp
push edi
call fcn.005081b0
add esp, 8
test eax, eax
je 0x5026aa
mov eax, dword [ebx + 0x610]
mov dword [eax], 0
test ebp, ebp
je 0x502cf6
push ebp
call dword [0x5ba020]
add esp, 4
jmp 0x502cf6
mov ebx, dword [esp + 0x28]
mov ebp, 0xa
cmp dword [ebx + 0x13c], ebp
jne 0x502712
cmp dword [ebx + 0x258], 0
je 0x502712
mov ecx, dword [esi + 0x68]
push str.keep_alive
push str.Proxy_Connection:
push ecx
call fcn.005000e0
add esp, 0xc
test eax, eax
je 0x502712
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push edi
mov dword [ebx + 0x24c], 0
call fcn.004e4180
add esp, 8
jmp 0x502cf6
cmp dword [ebx + 0x13c], 0xb
jne 0x50275b
cmp dword [ebx + 0x258], 0
je 0x50275b
mov edx, dword [esi + 0x68]
push str.close
push str.Proxy_Connection:
push edx
call fcn.005000e0
add esp, 0xc
test eax, eax
je 0x50275b
push str.HTTP_1.1_proxy_connection_set_close__n
push edi
mov dword [ebx + 0x24c], 1
call fcn.004e4180
add esp, 8
jmp 0x502cf6
cmp dword [ebx + 0x13c], ebp
jne 0x50279a
mov eax, dword [esi + 0x68]
push str.keep_alive
push str.Connection:
push eax
call fcn.005000e0
add esp, 0xc
test eax, eax
je 0x50279a
push str.HTTP_1.0_connection_set_to_keep_alive__n
push edi
mov dword [ebx + 0x24c], 0
call fcn.004e4180
add esp, 8
jmp 0x502cf6
mov ecx, dword [esi + 0x68]
push str.close
push str.Connection:
push ecx
call fcn.005000e0
add esp, 0xc
test eax, eax
je 0x5027c3
mov dword [ebx + 0x24c], 1
jmp 0x502cf6
mov edx, dword [esi + 0x68]
push 0x12
push edx
push str.Transfer_Encoding:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x50292c
mov edi, dword [esi + 0x68]
add edi, 0x12
mov al, byte [edi]
test al, al
je 0x50280d
lea ebx, [ebx]
movzx eax, al
push eax
call fcn.0052f87f
add esp, 4
test eax, eax
jne 0x502805
cmp byte [edi], 0x2c
jne 0x50280d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5027f0
push 7
push edi
push str.chunked
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502839
mov ecx, ebx
push ecx
mov dword [esi + 0xc8], 1
call fcn.0050cc40
add esp, 4
add edi, 7
cmp dword [esi + 0x8c], 0
jne 0x502cf6
push 8
push edi
push str.identity
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x50286c
mov dword [esi + 0x8c], 0
add edi, 8
jmp 0x5027e4
push 7
push edi
push str.deflate
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502892
mov dword [esi + 0x8c], 1
add edi, 7
jmp 0x5027e4
push 4
push edi
push str.gzip
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5028b8
mov dword [esi + 0x8c], 2
add edi, 4
jmp 0x5027e4
push 6
push edi
push str.x_gzip
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5028de
mov dword [esi + 0x8c], 2
add edi, 6
jmp 0x5027e4
push 8
push edi
push str.compress
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502904
mov dword [esi + 0x8c], 3
add edi, 8
jmp 0x5027e4
push ebp
push edi
push str.x_compress
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502cf6
mov dword [esi + 0x8c], 3
add edi, ebp
jmp 0x5027e4
mov edx, dword [esi + 0x68]
push 0x11
push edx
push str.Content_Encoding:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502a3f
cmp dword [edi + 0x3a0], 0
jne 0x50295d
cmp dword [ebx + 0x13c], 0x14
jne 0x502a3f
mov edi, dword [esi + 0x68]
mov al, byte [edi + 0x11]
add edi, 0x11
test al, al
je 0x502988
lea ebx, [ebx]
movzx eax, al
push eax
call fcn.0052f87f
add esp, 4
test eax, eax
je 0x502988
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x502970
push 8
push edi
push str.identity
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5029ab
mov dword [esi + 0x8c], 0
jmp 0x502cf6
push 7
push edi
push str.deflate
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x5029ce
mov dword [esi + 0x8c], 1
jmp 0x502cf6
push 4
push edi
push str.gzip
call fcn.004ea880
add esp, 0xc
test eax, eax
jne 0x502a30
push 6
push edi
push str.x_gzip
call fcn.004ea880
add esp, 0xc
test eax, eax
jne 0x502a30
push 8
push edi
push str.compress
call fcn.004ea880
add esp, 0xc
test eax, eax
jne 0x502a21
push ebp
push edi
push str.x_compress
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502cf6
mov dword [esi + 0x8c], 3
jmp 0x502cf6
mov dword [esi + 0x8c], 2
jmp 0x502cf6
mov ecx, dword [esi + 0x68]
push 0xe
push ecx
push str.Content_Range:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502ae7
mov edi, dword [esi + 0x68]
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x502a84
movzx edx, al
push edx
call fcn.0052f77a
add esp, 4
test eax, eax
jne 0x502a84
cmp byte [edi], 0x2a
je 0x502a84
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x502a67
movzx eax, byte [edi]
push eax
call fcn.0052f77a
add esp, 4
test eax, eax
je 0x502ad0
push ebp
push 0
push edi
call fcn.0053121c
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
cmp dword [ecx + 0x8758], eax
jne 0x502cf6
mov eax, ecx
cmp dword [eax + 0x875c], edx
jne 0x502cf6
mov dword [esi + 0x6c], 1
jmp 0x502cf6
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [eax + 0x8758], ecx
mov dword [eax + 0x875c], ecx
jmp 0x502cf6
cmp dword [edi + 0x498], 0
je 0x502b52
mov edx, dword [esi + 0x68]
push 0xb
push edx
push str.Set_Cookie:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502b52
push 2
push 2
push edi
call fcn.004ed0a0
mov eax, dword [ebx + 0x2f0]
add esp, 0xc
test eax, eax
jne 0x502b24
mov eax, dword [ebx + 0x98]
mov ecx, dword [edi + 0x8740]
mov edx, dword [esi + 0x68]
push ecx
push eax
mov eax, dword [edi + 0x498]
add edx, 0xb
push edx
push 1
push eax
push edi
call fcn.004e4d80
push 2
push edi
call fcn.004ed0e0
add esp, 0x20
jmp 0x502cf6
mov ecx, dword [esi + 0x68]
push 0xe
push ecx
push str.Last_Modified:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502bc4
cmp dword [edi + 0x258], 0
jne 0x502b7b
cmp dword [edi + 0x2e4], 0
je 0x502bc4
push 0
call fcn.0052c3e5
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
add eax, 0xe
push eax
call fcn.00509130
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp dword [edi + 0x2e4], 0
je 0x502cf6
mov ecx, eax
mov dword [edi + 0x87a0], ecx
jmp 0x502cf6
mov edx, dword [esi + 0x68]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502be5
mov eax, dword [esi + 0x78]
cmp eax, 0x191
je 0x502c06
mov eax, dword [esi + 0x68]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502c4e
mov eax, dword [esi + 0x78]
cmp eax, 0x197
jne 0x502c4e
mov edx, dword [esi + 0x68]
xor ecx, ecx
cmp eax, 0x197
sete cl
push edx
mov ebp, ecx
call fcn.004ff460
mov edi, eax
add esp, 4
test edi, edi
je 0x50306b
push edi
push ebp
push ebx
call fcn.004ffae0
push edi
mov ebp, eax
call dword [0x5ba020]
add esp, 0x10
test ebp, ebp
je 0x502cf6
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x78]
cmp eax, 0x12c
jl 0x502cd2
cmp eax, 0x190
jge 0x502cd2
mov eax, dword [esi + 0x68]
push 9
push eax
push str.Location:
call fcn.004ea880
add esp, 0xc
test eax, eax
je 0x502cd2
cmp dword [edi + 0x108], 0
jne 0x502cd2
mov ecx, dword [esi + 0x68]
push ecx
call fcn.004ff460
add esp, 4
test eax, eax
je 0x50306b
cmp byte [eax], 0
jne 0x502ca4
push eax
call dword [0x5ba020]
add esp, 4
jmp 0x502cf6
cmp dword [edi + 0x304], 0
mov dword [edi + 0x108], eax
je 0x502cf6
push eax
call dword [0x5ba028]
add esp, 4
mov dword [edi + 0x10c], eax
test eax, eax
je 0x50306b
call fcn.004ff6b0
jmp 0x502cee
mov edx, dword [ebx + 0x2c0]
test dword [edx + 0x3c], 0x40000
je 0x502cf6
mov eax, dword [esi + 0x68]
push eax
push ebx
call fcn.004ee690
add esp, 8
test eax, eax
jne 0x50312b
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x310], 0
mov edi, 2
je 0x502d0d
mov edi, 3
cmp dword [ebp + 0x32c], 0
je 0x502d2e
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x68]
push ecx
push edx
push eax
push 1
push ebp
call fcn.004e3ff0
add esp, 0x14
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x28]
push ecx
push edx
push edi
push eax
call fcn.004e4650
add esp, 0x10
test eax, eax
jne 0x50312b
mov ecx, dword [esi + 0x58]
add dword [ebp + 0x87a8], ecx
mov edx, dword [esi + 0x58]
mov eax, dword [ebp + 0x5c4]
add dword [ebp + 0x80], edx
mov dword [esi + 0x54], eax
jmp 0x502f78
cmp cl, 0xd
jne 0x502d75
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x502d81
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x78]
cmp eax, 0x64
jl 0x502def
cmp eax, 0xc7
jg 0x502def
xor ecx, ecx
sub eax, 0x64
mov edi, 1
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], ecx
je 0x502dd8
sub eax, edi
jne 0x502e4b
cmp dword [esi + 0x88], edi
jne 0x502e4b
push str.Received_101_n
push ebp
call fcn.004e4180
add esp, 8
mov eax, edi
pop edi
mov dword [esi + 0x88], 2
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x84], ecx
je 0x502e4b
or dword [esi + 0xa8], 2
mov dword [esi + 0x84], ecx
jmp 0x502e4b
mov ecx, dword [esi]
and ecx, dword [esi + 4]
mov dword [esi + 0x48], 0
cmp ecx, 0xffffffff
jne 0x502e4b
cmp dword [esi + 0xc8], 0
jne 0x502e4b
cmp dword [ebx + 0x24c], 0
jne 0x502e4b
cmp dword [ebx + 0x13c], 0xb
jne 0x502e4b
mov edx, dword [ebx + 0x2c0]
test dword [edx + 0x3c], 0x40000
jne 0x502e4b
cmp dword [ebp + 0x268], 5
je 0x502e4b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push ebp
call fcn.004e4180
add esp, 8
mov dword [ebx + 0x24c], 1
mov edx, ebx
call fcn.004ffd00
test eax, eax
jne 0x503078
lea ecx, [eax + 2]
cmp dword [ebp + 0x310], eax
je 0x502e68
lea ecx, [eax + 3]
mov eax, dword [ebp + 0x5c4]
mov ebx, dword [esi + 0x68]
mov edi, dword [esp + 0x28]
sub ebx, eax
push ebx
push eax
push ecx
push edi
call fcn.004e4650
add esp, 0x10
test eax, eax
jne 0x50312b
add dword [ebp + 0x80], ebx
add dword [ebp + 0x87a8], ebx
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp + 0x80]
cmp eax, 0x64
jl 0x502eb0
cmp eax, 0xc7
jg 0x502eb0
mov eax, ecx
jmp 0x502eb2
xor eax, eax
mov dword [ebp + 0x84], eax
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x502f65
push edi
call fcn.005005d0
add esp, 4
test eax, eax
jne 0x50312b
cmp dword [esi + 0x78], 0x12c
jl 0x502f47
cmp dword [edi + 0x284], eax
jne 0x502f47
cmp dword [edi + 0x24c], eax
jne 0x502f47
cmp dword [edi + 0x288], eax
jne 0x502f50
mov eax, dword [ebp + 0x268]
add eax, 0xfffffffe
cmp eax, 2
ja 0x502f47
cmp dword [esi + 0xac], 0
jne 0x502f47
push str.HTTP_error_before_end_of_send__stop_sending_n
push ebp
call fcn.004e4180
mov eax, 1
mov dword [edi + 0x24c], eax
and dword [esi + 0xa8], 0xfffffffd
add esp, 8
mov dword [esi + 0xac], eax
cmp dword [ebp + 0x8734], 0
je 0x502f47
mov dword [esi + 0x84], 3
cmp dword [edi + 0x288], 0
je 0x502f65
push str.Keep_sending_data_to_get_tossed_away__n
push ebp
call fcn.004e4180
add esp, 8
or dword [esi + 0xa8], 2
cmp dword [esi + 0x48], 0
je 0x503097
mov ecx, dword [ebp + 0x5c4]
mov dword [esi + 0x54], ecx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x58], 0
cmp dword [edx], 0
jne 0x503129
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
jne 0x502270
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi]
push ecx
call fcn.00500480
add esp, 4
test eax, eax
jne 0x50312b
cmp dword [esi + 0x50], eax
jne 0x503129
cmp dword [esi + 0x58], 5
jbe 0x503129
mov ecx, dword [ebp + 0x5c4]
mov eax, dword [esp + 0x28]
push ebp
call fcn.00500440
add esp, 4
test eax, eax
jne 0x503129
pop edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 2
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x48], 0
cmp dword [eax], 0
je 0x503016
pop edi
mov dword [esi + 0x4c], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [esi + 0x4c], 2
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebx
call fcn.00500530
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x10
ret
pop edi
mov dword [esi + 0x48], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.Maximum_file_size_exceeded
push edi
call fcn.004e4210
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 0x78]
push edx
push str.The_requested_URL_returned_error:__d
push ebp
call fcn.004e4210
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x10
ret
cmp dword [ebp + 0x31c], 0
je 0x5030ac
mov eax, dword [esp + 0x30]
mov dword [eax], 1
jmp 0x5030c3
cmp dword [esi + 0xc8], 0
je 0x5030c3
or eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x5030d1
cmp ecx, eax
je 0x5030e7
push ecx
push eax
push ebp
call fcn.004ec820
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
cmp dword [esi + 0x10], 0
jne 0x5030ff
cmp dword [esi + 0x14], 0
jne 0x5030ff
mov eax, dword [esp + 0x30]
mov dword [eax], 1
jmp 0x503108
mov ecx, dword [esp + 0x30]
cmp dword [ecx], 0
je 0x50310f
and dword [esi + 0xa8], 0xfffffffe
cmp dword [ebp + 0x32c], 0
je 0x503129
mov edx, dword [esi + 0x60]
push edi
push ebx
push edx
push 1
push ebp
call fcn.004e3ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret