Function at 0x502fe7
Capabilities:
Check http status code

Disassembly:
sub esp, 0x48
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [eax + 0xfa4]
mov eax, dword [0x682adc]
xor ebx, ebx
cmp eax, ebp
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], ecx
jne 0x50316b
push str.wininet.dll
call dword [0x5f6278]
mov edi, eax
cmp edi, ebp
jne 0x503062
mov dword [0x682adc], 2
jmp 0x503c3a
mov ebp, dword [0x5f627c]
push str.InternetOpenA
push edi
call ebp
push str.InternetConnectA
push edi
mov dword [0x682ae0], eax
call ebp
push str.HttpOpenRequestA
push edi
mov dword [0x682ae4], eax
call ebp
push str.HttpSendRequestA
push edi
mov dword [0x682ae8], eax
call ebp
push 0x603e44
push edi
mov dword [0x682aec], eax
call ebp
push str.InternetQueryOptionA
push edi
mov dword [0x682af0], eax
call ebp
push str.InternetQueryDataAvailable
push edi
mov dword [0x682af4], eax
call ebp
push str.InternetReadFile
push edi
mov dword [0x682af8], eax
call ebp
push str.InternetCloseHandle
push edi
mov dword [0x682afc], eax
call ebp
push str.FtpOpenFileA
push edi
mov dword [0x682b00], eax
call ebp
mov dword [0x682b04], eax
mov eax, dword [0x682ae0]
test eax, eax
je 0x503053
mov eax, dword [0x682ae4]
test eax, eax
je 0x503053
mov eax, dword [0x682ae8]
test eax, eax
je 0x503053
mov eax, dword [0x682aec]
test eax, eax
je 0x503053
mov eax, dword [0x682af0]
test eax, eax
je 0x503053
mov eax, dword [0x682af4]
test eax, eax
je 0x503053
mov eax, dword [0x682af8]
test eax, eax
je 0x503053
mov eax, dword [0x682afc]
test eax, eax
je 0x503053
mov eax, dword [0x682b00]
test eax, eax
je 0x503053
mov dword [0x682adc], 1
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push 0x603538
call dword [0x682ae0]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x503bfb
mov al, byte [esi + 0x1d]
test al, al
jne 0x503bfb
mov edx, dword [str.https:__]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5031a0
mov ecx, dword [esi + 0x30]
sub eax, edi
push eax
push edx
push ecx
call fcn.005f0560
add esp, 0xc
test eax, eax
jne 0x5031c7
mov ebx, 1
mov ebp, 0x1bb
jmp 0x5031ca
mov ebp, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x3c]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x2c]
push esi
sete dl
push 0
lea edx, [edx + edx + 1]
push edx
push 0
push 0
push ebp
push edi
push eax
call dword [0x682ae4]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x503bbe
mov al, byte [esi + 0x1d]
test al, al
jne 0x503bbe
mov ecx, dword [esi + 0x88]
call fcn.004b5360
cmp eax, 6
mov eax, dword [esi + 0x54]
jl 0x50322f
push 0
push eax
call fcn.005046b0
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
jmp 0x50323e
push eax
call fcn.0043bcb0
add esp, 4
mov dword [esp + 0x10], eax
mov ebp, eax
test ebp, ebp
jne 0x503275
push 0x10
call fcn.005ddbe0
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x50326c
push eax
mov dword [eax], 3
mov dword [eax + 4], 0xa2
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
jmp 0x503c22
xor eax, eax
push eax
push ecx
jmp 0x503c22
mov eax, dword [esi + 0x64]
sub eax, 0
je 0x5032cf
dec eax
jne 0x50397c
push esi
push 2
push 0x80000000
push ebp
push edi
call dword [0x682b04]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5032a7
mov al, byte [esi + 0x1d]
test al, al
je 0x50397c
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503ba5
push ebp
push 0
push 0x91
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503ba7
mov eax, dword [esi + 0x84]
test ah, 2
jne 0x5034d7
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x5032f0
mov ecx, dword [esi + 0x70]
test ecx, ecx
ja 0x5034ea
mov ecx, 0x5f6d30
mov edx, eax
and edx, 0xffffff80
shl edx, 0xd
and eax, 0x8000
or edx, eax
mov eax, dword [esp + 0x10]
shl edx, 0xb
push esi
neg ebx
sbb ebx, ebx
and ebx, 0x800000
or edx, ebx
push edx
push 0
push 0
push 0
push eax
push ecx
push edi
call dword [0x682ae8]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x503b80
mov al, byte [esi + 0x1d]
test al, al
jne 0x503b80
mov edx, dword [str.http:__]
mov ebx, dword [esi + 0x30]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503350
sub eax, edi
push eax
push edx
push ebx
call fcn.005f0560
add esp, 0xc
test eax, eax
je 0x50338b
mov edx, dword [str.https:__]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503373
sub eax, edi
push eax
push edx
push ebx
call fcn.005f0560
add esp, 0xc
test eax, eax
jne 0x5033f6
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x5033f6
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x5033f6
call fcn.00485e20
mov edi, dword [eax]
test edi, edi
je 0x5033f6
push str.https:
push edi
call fcn.0043b900
add esp, 8
test eax, eax
setne al
test al, al
je 0x5033d0
push str.https:
push ebx
call fcn.0043b900
add esp, 8
test eax, eax
je 0x5033f6
push str.Referer:
lea ecx, [esp + 0x50]
call fcn.0043b850
push edi
lea ecx, [esp + 0x50]
call fcn.0043b850
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b850
push str.x_flash_version:
lea ecx, [esp + 0x50]
call fcn.0043b850
push 0x602400
lea ecx, [esp + 0x50]
call fcn.0043b850
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b850
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503425
sub eax, edx
cmp eax, 4
jbe 0x503478
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503438
sub eax, edx
lea edi, [eax + ebx - 4]
push str..jpg
push edi
call fcn.0043b900
add esp, 8
test eax, eax
jne 0x50346a
push str..jpeg
dec edi
push edi
call fcn.0043b900
add esp, 8
test eax, eax
je 0x503478
push str.Cache_Control:_no_transform_r_n
lea ecx, [esp + 0x50]
call fcn.0043b850
mov eax, dword [esi + 0x6c]
test eax, eax
lea ecx, [esp + 0x4c]
je 0x50354d
mov edi, dword [esi + 0x70]
mov ebx, eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x5034f4
push str.Content_type:
call fcn.0043b850
mov ecx, dword [esi + 0x74]
push ecx
lea ecx, [esp + 0x50]
call fcn.0043b850
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.0043b850
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.0043b530
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b850
jmp 0x50355f
mov ebp, dword [esi + 0x6c]
test ebp, ebp
setne dl
movzx ecx, dl
test ecx, ecx
je 0x5032f0
mov ecx, 0x5f6d28
jmp 0x5032f5
mov eax, dword [esi + 0x84]
test ah, 2
je 0x503519
push str.Content_type:
call fcn.0043b850
push str.application_x_amf
lea ecx, [esp + 0x50]
call fcn.0043b850
jmp 0x50355f
push str.Content_Type:
call fcn.0043b850
push str.application_x_www_form_urlencoded
lea ecx, [esp + 0x50]
call fcn.0043b850
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.0043b850
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.0043b530
jmp 0x50355f
push 0x5f6fa4
call fcn.0043b850
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x50356d
mov eax, dword [esp + 0x4c]
jmp 0x503575
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push edi
push ebx
push ecx
push eax
push ebp
call dword [0x682aec]
test eax, eax
je 0x503b54
mov al, byte [esi + 0x1d]
test al, al
jne 0x503b54
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000013
push ebp
mov dword [esp + 0x34], 4
call dword [0x682af0]
test eax, eax
jne 0x5035e3
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x93
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0xc
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503606
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
jmp 0x503608
xor eax, eax
mov ebp, dword [0x5f6444]
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xfa4]
push 0
push 0x407
push ecx
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x5038c3
cmp eax, 0x190
jb 0x503c3a
add eax, 0xfffffe70
cmp eax, 0x69
ja case.0x503654.407
movzx edx, byte [eax + 0x503d00]
jmp dword [edx*4 + 0x503cc8]
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x7f
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x80
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x81
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x82
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x83
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x84
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x85
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x86
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x87
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x88
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x89
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x8a
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x8b
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503ba5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0xa1
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503ba7
mov ebx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0x20000005
push ebx
mov dword [esp + 0x34], 4
call dword [0x682af0]
test eax, eax
jne 0x5038f3
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x22
push ebx
mov dword [esp + 0x28], 0
call dword [0x682af4]
test eax, eax
jne 0x503982
call dword [0x5f6254]
cmp eax, 0x7a
jne 0x503982
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x503982
push eax
call fcn.005ddbe0
mov edi, eax
add esp, 4
test edi, edi
je 0x503982
lea edx, [esp + 0x18]
push edx
push edi
push 0x22
push ebx
call dword [0x682af4]
test eax, eax
je 0x503971
push 0xc
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503967
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [esp + 0x24], eax
jmp 0x503982
mov dword [esp + 0x24], 0
jmp 0x503982
push edi
call fcn.005ddc00
add esp, 4
jmp 0x503982
mov ebp, dword [0x5f6444]
push 0xc
call fcn.005ddbe0
xor edi, edi
add esp, 4
cmp eax, edi
je 0x50399f
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x5039a1
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xfa4]
push edi
push 0x404
push eax
call ebp
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x5039d5
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0xfa4]
push eax
push edi
push 0x408
push edx
call ebp
push 0xc
call fcn.005ddbe0
add esp, 4
cmp eax, edi
je 0x5039f4
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
jmp 0x5039f6
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xfa4]
push edi
push 0x406
push ecx
call ebp
mov al, byte [esi + 0x1d]
test al, al
jne 0x503c3a
mov ebx, dword [esp + 0x48]
jmp 0x503a20
mov eax, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [0x682af8]
test eax, eax
je 0x503adf
mov eax, dword [esp + 0x24]
test eax, eax
je 0x503adf
mov cl, byte [esi + 0x1d]
test cl, cl
jne 0x503adf
cmp eax, 0x10000
jbe 0x503a63
mov eax, 0x10000
mov dword [esp + 0x24], eax
push eax
call fcn.005ddbe0
mov edx, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
call dword [0x682afc]
test eax, eax
je 0x503adf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x503adf
mov al, byte [esi + 0x1d]
test al, al
jne 0x503c3a
push 0xc
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503abc
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
mov dword [eax + 4], edi
mov dword [eax], edx
mov dword [eax + 8], ecx
mov edi, eax
jmp 0x503abe
xor edi, edi
mov al, byte [esi + 0x1d]
test al, al
jne 0x503b0f
push edi
push 0
push 0x402
push ebx
call ebp
test eax, eax
je 0x503b0f
mov al, byte [esi + 0x1d]
test al, al
je 0x503a20
mov al, byte [esi + 0x1d]
test al, al
jne 0x503c3a
push 0xc
mov dword [esp + 0x34], 1
call fcn.005ddbe0
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x503b39
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x503b3b
test edi, edi
je 0x503b2c
mov eax, dword [edi + 4]
test eax, eax
je 0x503b23
push eax
call fcn.005ddc00
add esp, 4
push edi
call fcn.005ddc00
add esp, 4
mov dword [esp + 0x30], 1
jmp 0x503c3a
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
push ecx
mov ecx, dword [eax + 0xfa4]
push 0x405
push ecx
jmp 0x503c34
call dword [0x5f6254]
push 0x10
mov edi, eax
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503ba5
mov edx, dword [esp + 0x10]
push edx
push edi
push 0x94
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503ba7
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503ba5
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x92
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503ba7
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xfa4]
push 0
push 0x409
push ecx
jmp 0x503c34
push 0x10
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x503be2
mov edx, dword [esi + 0x3c]
push edx
push 0
push 0x95
push 3
mov ecx, eax
call fcn.00502e60
jmp 0x503be4
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xfa4]
push 0
push 0x409
push eax
jmp 0x503c34
push 0x10
call fcn.005ddbe0
add esp, 4
cmp eax, ebp
je 0x503c1e
mov dword [eax], 3
mov dword [eax + 4], 0x96
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
jmp 0x503c20
xor eax, eax
push eax
push ebp
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0xfa4]
push 0x409
push edx
call dword [0x5f6444]
mov eax, dword [esp + 0x10]
push eax
call fcn.005ddc00
mov eax, dword [esp + 0x18]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x503c58
push eax
call dword [0x682b00]
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x503c67
push eax
call dword [0x682b00]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x503c76
push eax
call dword [0x682b00]
cmp dword [esp + 0x30], edi
jne 0x503cb3
push 0xc
call fcn.005ddbe0
add esp, 4
cmp eax, edi
je 0x503c97
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x503c99
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xfa4]
push edi
push 0x403
push eax
call dword [0x5f6444]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005ddc00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret