Function at 0x1004a280
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov esi, dword [esp + 0x24]
push edi
push ecx
push 0xa
mov edx, dword [esi + 0xd0]
mov edi, ecx
mov eax, edx
mov dword [esp + 0x24], ecx
push eax
mov dword [esp + 0x2c], edx
mov ebx, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
call fcn.1007ec70
mov ebp, dword [esp + 0x38]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1004ad72
mov edx, dword [esp + 0x30]
sub edi, ecx
lea eax, [edi - 1]
add eax, ebx
lea edi, [esi + 0x8a4]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xd0], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.100344d0
add esp, 0xc
test eax, eax
jne 0x1004ae2b
cmp dword [esi + 0xcc], eax
jne 0x1004a36a
push edi
call fcn.10034530
push edi
mov ebx, eax
call fcn.10034540
mov ecx, dword [ebp + 0x1e0]
add esp, 8
test dword [ecx + 0x44], 0x40000
je 0x1004a356
cmp ebx, 5
mov ecx, 5
sbb edi, edi
inc edi
cmp ebx, 5
cmova ebx, ecx
push ebx
push eax
push str.RTSP_
call fcn.10042210
add esp, 0xc
test eax, eax
mov eax, 2
cmovne eax, edi
lea edi, [esi + 0x8a4]
jmp 0x1004a361
push ebx
push eax
push esi
call fcn.1004b250
add esp, 0xc
cmp eax, 2
je 0x1004adfb
push edi
call fcn.10034540
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1004a89b
cmp cl, 0xd
je 0x1004a89b
mov ecx, dword [esi + 0xcc]
mov ebx, 2
mov dword [esp + 0x28], ebx
lea eax, [ecx + 1]
mov dword [esi + 0xcc], eax
test ecx, ecx
jne 0x1004a796
mov eax, dword [ebp + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1004a5af
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1004a3d6
cmp al, 0x20
je 0x1004a3ce
cmp al, 9
jne 0x1004a3d6
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004a3c6
push 5
push str.HTTP_
push edi
call fcn.10089e70
add esp, 0xc
test eax, eax
jne 0x1004a47c
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x1004a4be
sub al, 0x32
cmp al, 1
ja 0x1004ae57
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1004a410
cmp al, 9
jne 0x1004a47c
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea ebx, [eax + eax*4]
mov al, cl
sub al, 0x30
add ebx, ebx
cmp al, 9
ja 0x1004a47c
mov dh, byte [edi + 8]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x1004a47c
mov dl, byte [edi + 9]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1004a47c
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [esi + 0xe0], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x1004a551
cmp al, 9
je 0x1004a551
cmp al, 0xa
jl 0x1004a47c
cmp al, 0xd
jle 0x1004a551
lea edi, [esi + 0x8a4]
push edi
call fcn.10034530
add esp, 4
push eax
push edi
call fcn.10034540
add esp, 4
push eax
push esi
call fcn.1004b250
add esp, 0xc
cmp eax, 1
jne 0x1004aedd
mov dword [esi + 0xe0], 0xc8
mov byte [ebp + 0x453], 0xa
jmp 0x1004a68c
cmp byte [edi + 6], 0x2e
jne 0x1004aec2
mov al, byte [edi + 7]
cmp al, 0x30
je 0x1004a4d7
cmp al, 0x31
jne 0x1004aec2
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x1004a4e8
cmp cl, 9
jne 0x1004aec2
mov cl, byte [edi + 9]
movsx ebx, al
mov al, cl
sub al, 0x30
sub ebx, 0x26
cmp al, 9
ja 0x1004aec2
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x1004aec2
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1004aec2
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [esi + 0xe0], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x1004a551
cmp al, 9
je 0x1004a551
sub al, 0xa
cmp al, 3
ja 0x1004aec2
cmp ecx, 0x64
jl 0x1004aea7
lea eax, [ebx - 0xa]
cmp eax, 1
ja 0x1004ae72
mov byte [ebp + 0x453], bl
mov al, bl
cmp dword [esi + 0xfc], 3
jne 0x1004a590
cmp bl, 0x14
je 0x1004a590
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.1003e6b0
mov al, byte [ebp + 0x453]
add esp, 8
lea edi, [esi + 0x8a4]
cmp al, 0x14
jae 0x1004a68c
mov eax, dword [ebp + 0x420]
mov dword [eax], 0xffffffff
jmp 0x1004a68c
test eax, 0x40000
je 0x1004aedd
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1004a5d2
cmp al, 0x20
je 0x1004a5ca
cmp al, 9
jne 0x1004a5d2
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004a5c2
push 5
push str.RTSP_
push edi
call fcn.10089e70
add esp, 0xc
test eax, eax
jne 0x1004aedd
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x1004af19
cmp byte [edi + 6], 0x2e
jne 0x1004af19
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x1004af19
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1004a61d
cmp al, 9
jne 0x1004af19
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x1004af19
mov bl, byte [edi + 0xa]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x1004af19
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1004af19
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0xe0], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x1004a67f
cmp al, 9
je 0x1004a67f
sub al, 0xa
cmp al, 3
ja 0x1004af19
mov byte [ebp + 0x453], 0xb
lea edi, [esi + 0x8a4]
mov eax, dword [esi + 0xe0]
mov cl, byte [esi + 0xc3d]
mov dword [esi + 0xd58], eax
movzx eax, byte [ebp + 0x453]
mov dword [esi + 0xd60], eax
mov al, byte [ebp + 0x453]
test cl, cl
je 0x1004a6b9
cmp cl, al
jbe 0x1004a6bf
mov byte [esi + 0xc3d], al
mov eax, dword [esi + 0xc48]
or eax, dword [esi + 0xc4c]
je 0x1004a6e9
cmp byte [esi + 0xc94], 0
jne 0x1004a6e9
cmp dword [esi + 0xe0], 0x1a0
jne 0x1004a6e9
mov byte [esi + 0x145], 1
mov al, byte [ebp + 0x453]
cmp al, 0xa
jne 0x1004a70b
push str.HTTP_1.0__assume_close_after_body
push esi
call fcn.1003e6b0
push 1
push ebp
call fcn.1003f370
add esp, 0x10
jmp 0x1004a72d
cmp al, 0x14
je 0x1004a721
cmp dword [esi + 0xfc], 2
jne 0x1004a72d
cmp dword [esi + 0xe0], 0x65
jne 0x1004a72d
mov eax, dword [ebp + 0x420]
mov dword [eax], 2
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0x64]
cmp eax, 0x63
setbe al
mov byte [esi + 0x146], al
sub ecx, 0xcc
je 0x1004a75e
sub ecx, 0x64
jne 0x1004a78d
cmp byte [esi + 0x3c8], cl
je 0x1004a75e
mov byte [esi + 0xe20], 1
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov byte [esi + 0x146], 1
mov ebx, 6
mov dword [esp + 0x28], ebx
push edi
call fcn.10034540
mov edi, eax
lea eax, [esi + 0x8a4]
push eax
call fcn.10034530
push eax
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.1007ec70
add esp, 0x14
test eax, eax
jne 0x1004af0a
mov ecx, dword [esi + 0xcc]
cmp ecx, 2
jl 0x1004a7f3
mov al, byte [edi]
cmp al, 0x20
je 0x1004a7d7
cmp al, 9
jne 0x1004a7dc
cmp ecx, 2
jg 0x1004a7f3
push dword [esp + 0x18]
push 0x3a
push edi
call fcn.1007ec70
add esp, 0xc
test eax, eax
je 0x1004aeee
push dword [esp + 0x10]
push ebp
push esi
call fcn.10049300
add esp, 0xc
test eax, eax
jne 0x1004ae2b
mov edi, dword [esi + 0xe0]
or ebx, 1
cmp byte [esi + 0x6cb], al
lea eax, [esi + 0x8a4]
push eax
cmove ebx, dword [esp + 0x2c]
call fcn.10034530
push eax
push dword [esp + 0x18]
push 1
push esi
call fcn.1003e550
lea eax, [esi + 0x8a4]
push eax
call fcn.10034530
push eax
push dword [esp + 0x2c]
lea eax, [edi - 0x64]
mov ecx, ebx
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
push ecx
push esi
call fcn.1003e740
add esp, 0x28
test eax, eax
jne 0x1004ae2b
lea ebx, [esi + 0x8a4]
push ebx
call fcn.10034530
add dword [esi + 0xd70], eax
push ebx
adc dword [esi + 0xd74], 0
call fcn.10034530
add esp, 8
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], 0
jmp 0x1004ad34
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x1004a930
sub ecx, 0x64
je 0x1004a8f2
sub ecx, 1
je 0x1004a8d3
mov byte [esi + 0x142], 1
lea ebx, [esi + 0x80]
mov dword [esi + 0xcc], 0
jmp 0x1004a994
cmp dword [esi + 0xfc], 2
je 0x1004af26
mov byte [esi + 0x142], 0
lea ebx, [esi + 0x80]
jmp 0x1004a994
cmp dword [esi + 0xf8], 0
mov byte [esi + 0x142], 1
mov dword [esi + 0xcc], 0
jle 0x1004a928
or dword [esi + 0xe4], 2
push 0
push esi
mov dword [esi + 0xf8], 0
call fcn.1002e7d0
add esp, 8
lea ebx, [esi + 0x80]
jmp 0x1004a994
mov eax, dword [esi + 0x80]
lea ebx, [esi + 0x80]
and eax, dword [ebx + 4]
xor cl, cl
mov byte [esi + 0x142], 0
cmp eax, 0xffffffff
jne 0x1004a99a
cmp byte [esi + 0x147], cl
jne 0x1004a99a
cmp byte [ebp + 0x1c6], cl
jne 0x1004a99a
cmp byte [ebp + 0x453], 0xb
jne 0x1004a99a
mov eax, dword [ebp + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0x1004a99a
cmp byte [esi + 0xc94], 5
je 0x1004a99a
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.1003e6b0
push 2
push ebp
call fcn.1003f370
add esp, 0x10
mov cl, byte [esi + 0x142]
test cl, cl
jne 0x1004aa24
cmp byte [esi + 0x148], cl
jne 0x1004aa09
cmp byte [ebx + 0xc7], cl
jne 0x1004aa09
mov ecx, dword [ebx]
mov eax, ecx
mov edx, dword [ebx + 4]
and eax, edx
cmp eax, 0xffffffff
je 0x1004aa24
mov ebx, dword [esi + 0x4c8]
mov eax, ebx
mov edi, dword [esi + 0x4cc]
or eax, edi
je 0x1004a9e4
cmp edx, edi
jg 0x1004af5c
jl 0x1004a9e4
cmp ecx, ebx
ja 0x1004af5c
push edx
push ecx
push esi
call fcn.1004cc30
mov eax, dword [esi + 0x80]
add esp, 0xc
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x84]
mov dword [esi + 0x8c], eax
jmp 0x1004aa24
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 0xc], 0xffffffff
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov cl, byte [ebp + 0x1c6]
mov al, cl
test cl, cl
je 0x1004aa73
mov edx, dword [esi + 0xe0]
cmp edx, 0x191
jne 0x1004aa47
cmp dword [ebp + 0x250], 2
je 0x1004aa58
cmp edx, 0x197
jne 0x1004aa73
cmp dword [ebp + 0x254], 2
jne 0x1004aa73
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1003e6b0
mov byte [esi + 0xd3d], 1
add esp, 8
mov al, byte [ebp + 0x1c6]
test al, al
je 0x1004aab4
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0x1004aa8f
cmp dword [ebp + 0x2d8], 1
je 0x1004aa9f
jmp 0x1004aab4
cmp eax, 0x197
jne 0x1004aab4
cmp dword [ebp + 0x2dc], 1
jne 0x1004aab4
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1003e6b0
add esp, 8
mov byte [esi + 0xd3d], 1
cmp dword [ebp + 0x2d8], 3
jne 0x1004aad3
cmp dword [esi + 0xe0], 0x191
je 0x1004aad3
mov dword [ebp + 0x2d8], 4
cmp dword [ebp + 0x2dc], 3
jne 0x1004aaf2
cmp dword [esi + 0xe0], 0x197
je 0x1004aaf2
mov dword [ebp + 0x2dc], 4
mov eax, dword [esi + 0xe0]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [esi + 0x6cb], al
setne al
add eax, 2
or edi, eax
lea eax, [esi + 0x8a4]
push eax
call fcn.10034530
add esp, 4
mov ebx, eax
lea eax, [esi + 0x8a4]
mov dword [esp + 0x18], ebx
push ebx
push eax
call fcn.10034540
add esp, 4
push eax
push edi
push esi
call fcn.1003e740
add esp, 0x10
test eax, eax
jne 0x1004ae2b
mov eax, ebx
cdq
mov edi, eax
mov ebx, edx
add dword [esi + 0xd70], edi
push esi
adc dword [esi + 0xd74], ebx
add edi, dword [esi + 0xa0]
mov dword [esi + 0xa0], edi
adc ebx, dword [esi + 0xa4]
mov dword [esi + 0xa4], ebx
call fcn.1004b630
add esp, 4
test al, al
mov eax, dword [esi + 0xe0]
jne 0x1004afec
add eax, 0xffffff9c
cmp eax, 0x63
jbe 0x1004aba6
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push esi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], ebx
call fcn.10048300
add esp, 4
test eax, eax
jne 0x1004ae2b
cmp dword [esi + 0xe0], 0x12c
jl 0x1004ad1b
cmp byte [ebp + 0x1d0], al
jne 0x1004acec
cmp byte [ebp + 0x1c6], al
jne 0x1004acec
cmp byte [esi + 0xd4b], al
jne 0x1004acec
mov al, byte [esi + 0xc94]
dec al
cmp al, 3
ja 0x1004acec
push 0
push esi
call fcn.1002e7d0
add esp, 8
cmp byte [esi + 0x144], 0
jne 0x1004acec
cmp dword [esi + 0xe0], 0x1a1
jne 0x1004ac6d
cmp byte [esi + 0xd3f], 0
je 0x1004ac6d
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.1003e6b0
push dword [esi + 0xc98]
mov byte [esi + 0xd40], 1
call dword [0x100ce00c]
lea edi, [esi + 0x80]
mov dword [esi + 0x118], eax
push edi
push esi
call fcn.100430f0
add esp, 0x14
jmp 0x1004acf2
cmp byte [esi + 0x6c7], 0
je 0x1004aca6
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.1003e6b0
add esp, 8
lea edi, [esi + 0x80]
cmp dword [esi + 0xf8], 0
jle 0x1004acf2
or dword [esi + 0xe4], 2
mov dword [esi + 0xf8], 0
jmp 0x1004acf2
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.1003e6b0
push 2
push ebp
call fcn.1003f370
lea edi, [esi + 0x80]
push edi
push esi
call fcn.100430f0
add esp, 0x18
test eax, eax
jne 0x1004ae2b
mov byte [esi + 0x144], 1
cmp byte [esi + 0xd3f], al
je 0x1004acf2
mov dword [esi + 0xf8], 3
jmp 0x1004acf2
lea edi, [esi + 0x80]
cmp byte [esi + 0xd4b], 0
je 0x1004ad21
cmp dword [ebp + 0x1fc], 0xffffffff
je 0x1004ad21
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.1003e6b0
add esp, 8
or dword [esi + 0xe4], 2
jmp 0x1004ad21
lea edi, [esi + 0x80]
cmp byte [esi + 0x142], 0
je 0x1004af77
lea ebx, [esi + 0x8a4]
push ebx
call fcn.10034550
mov ebx, dword [esi + 0xd0]
add esp, 4
cmp byte [ebx], 0
je 0x1004ae29
mov ecx, dword [esp + 0x30]
mov eax, ebx
mov dword [esp + 0x28], eax
mov edi, dword [ecx]
push edi
push 0xa
push eax
mov dword [esp + 0x1c], edi
call fcn.1007ec70
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x1004a2c7
push dword [esp + 0x10]
lea ebx, [esi + 0x8a4]
push dword [esp + 0x2c]
push ebx
call fcn.100344d0
add esp, 0xc
test eax, eax
jne 0x1004ae2b
cmp dword [esi + 0xcc], eax
jne 0x1004ae29
push ebx
call fcn.10034530
add esp, 4
push eax
push ebx
call fcn.10034540
add esp, 4
push eax
push ebp
push esi
call fcn.1004b300
add esp, 0x10
cmp eax, 2
jne 0x1004ae29
push eax
push ebp
mov byte [esi + 0x142], 0
mov dword [esi + 0xc8], eax
call fcn.1003f370
add esp, 8
cmp byte [esi + 0x6ea], 0
jne 0x1004ae29
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 2
push ebp
call fcn.1003f370
add esp, 8
cmp byte [esi + 0x6ea], 0
je 0x1004ade0
mov eax, dword [esp + 0x30]
mov byte [esi + 0x142], 0
cmp dword [eax], 0
je 0x1004ae33
mov dword [esi + 0xc8], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc8], 2
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0xd0], eax
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
add eax, eax
sub ebx, eax
push ebx
push ecx
push str.Unsupported_HTTP_version___u._d__in_response
push esi
call fcn.1003e5e0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.Unsupported_response_code_in_HTTP_response
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.Unsupported_HTTP_1_subversion_in_response
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov byte [esi + 0x142], 0
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, str.Header_without_colon
push eax
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, str.Nul_byte_in_header
push eax
push esi
call fcn.1003e5e0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.1003e6b0
add esp, 8
mov dword [esi + 0xfc], 3
mov byte [esi + 0x142], 1
mov eax, 1
mov dword [esi + 0xcc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.Maximum_file_size_exceeded
push esi
call fcn.1003e5e0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp byte [esi + 0x14c], 0
mov ecx, dword [esp + 0x34]
jne 0x1004afa9
mov eax, dword [ebp + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0x1004afac
cmp dword [esi + 0x65c], 2
jne 0x1004afac
cmp dword [edi + 4], 0xffffffff
jg 0x1004afac
jl 0x1004afa9
cmp dword [edi], 0xffffffff
ja 0x1004afac
mov byte [ecx], 1
cmp dword [esi + 0x88], 0
jne 0x1004afc3
cmp dword [esi + 0x8c], 0
jne 0x1004afc3
mov byte [ecx], 1
jmp 0x1004afc8
cmp byte [ecx], 0
je 0x1004afcf
and dword [esi + 0xe4], 0xfffffffe
push dword [esp + 0x18]
push dword [esp + 0x2c]
push 1
push esi
call fcn.1003e550
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push eax
push str.The_requested_URL_returned_error:__d
push esi
call fcn.1003e5e0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret