Function at 0x502757
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 + 0xf9c]
mov eax, dword [0x681a9c]
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 + 0x44], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], ecx
jne 0x5028db
push str.wininet.dll
call dword [0x5f627c]
mov edi, eax
cmp edi, ebp
jne 0x5027d2
mov dword [0x681a9c], 2
jmp 0x5033aa
mov ebp, dword [0x5f6280]
push str.InternetOpenA
push edi
call ebp
push str.InternetConnectA
push edi
mov dword [0x681aa0], eax
call ebp
push str.HttpOpenRequestA
push edi
mov dword [0x681aa4], eax
call ebp
push str.HttpSendRequestA
push edi
mov dword [0x681aa8], eax
call ebp
push 0x603e44
push edi
mov dword [0x681aac], eax
call ebp
push str.InternetQueryOptionA
push edi
mov dword [0x681ab0], eax
call ebp
push str.InternetQueryDataAvailable
push edi
mov dword [0x681ab4], eax
call ebp
push str.InternetReadFile
push edi
mov dword [0x681ab8], eax
call ebp
push str.InternetCloseHandle
push edi
mov dword [0x681abc], eax
call ebp
push str.FtpOpenFileA
push edi
mov dword [0x681ac0], eax
call ebp
mov dword [0x681ac4], eax
mov eax, dword [0x681aa0]
test eax, eax
je 0x5027c3
mov eax, dword [0x681aa4]
test eax, eax
je 0x5027c3
mov eax, dword [0x681aa8]
test eax, eax
je 0x5027c3
mov eax, dword [0x681aac]
test eax, eax
je 0x5027c3
mov eax, dword [0x681ab0]
test eax, eax
je 0x5027c3
mov eax, dword [0x681ab4]
test eax, eax
je 0x5027c3
mov eax, dword [0x681ab8]
test eax, eax
je 0x5027c3
mov eax, dword [0x681abc]
test eax, eax
je 0x5027c3
mov eax, dword [0x681ac0]
test eax, eax
je 0x5027c3
mov dword [0x681a9c], 1
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push 0x603538
call dword [0x681aa0]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x50336b
mov al, byte [esi + 0x1d]
test al, al
jne 0x50336b
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 0x502910
mov ecx, dword [esi + 0x30]
sub eax, edi
push eax
push edx
push ecx
call fcn.005efcb0
add esp, 0xc
test eax, eax
jne 0x502937
mov ebx, 1
mov ebp, 0x1bb
jmp 0x50293a
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 [0x681aa4]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x50332e
mov al, byte [esi + 0x1d]
test al, al
jne 0x50332e
mov ecx, dword [esi + 0x88]
call fcn.004b4e00
cmp eax, 6
mov eax, dword [esi + 0x54]
jl 0x50299f
push 0
push eax
call fcn.00503e20
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
jmp 0x5029ae
push eax
call fcn.0043bb40
add esp, 4
mov dword [esp + 0x10], eax
mov ebp, eax
test ebp, ebp
jne 0x5029e5
push 0x10
call fcn.005dd330
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x5029dc
push eax
mov dword [eax], 3
mov dword [eax + 4], 0xa2
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
jmp 0x503392
xor eax, eax
push eax
push ecx
jmp 0x503392
mov eax, dword [esi + 0x64]
sub eax, 0
je 0x502a3f
dec eax
jne 0x5030ec
push esi
push 2
push 0x80000000
push ebp
push edi
call dword [0x681ac4]
test eax, eax
mov dword [esp + 0x14], eax
je 0x502a17
mov al, byte [esi + 0x1d]
test al, al
je 0x5030ec
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503315
push ebp
push 0
push 0x91
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503317
mov eax, dword [esi + 0x84]
test ah, 2
jne 0x502c47
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x502a60
mov ecx, dword [esi + 0x70]
test ecx, ecx
ja 0x502c5a
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 [0x681aa8]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x5032f0
mov al, byte [esi + 0x1d]
test al, al
jne 0x5032f0
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 0x502ac0
sub eax, edi
push eax
push edx
push ebx
call fcn.005efcb0
add esp, 0xc
test eax, eax
je 0x502afb
mov edx, dword [str.https:__]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502ae3
sub eax, edi
push eax
push edx
push ebx
call fcn.005efcb0
add esp, 0xc
test eax, eax
jne 0x502b66
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x502b66
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x502b66
call fcn.004edb60
mov edi, dword [eax]
test edi, edi
je 0x502b66
push str.https:
push edi
call fcn.0043b790
add esp, 8
test eax, eax
setne al
test al, al
je 0x502b40
push str.https:
push ebx
call fcn.0043b790
add esp, 8
test eax, eax
je 0x502b66
push str.Referer:
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push edi
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push str.x_flash_version:
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push 0x602400
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b6e0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502b95
sub eax, edx
cmp eax, 4
jbe 0x502be8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502ba8
sub eax, edx
lea edi, [eax + ebx - 4]
push str..jpg
push edi
call fcn.0043b790
add esp, 8
test eax, eax
jne 0x502bda
push str..jpeg
dec edi
push edi
call fcn.0043b790
add esp, 8
test eax, eax
je 0x502be8
push str.Cache_Control:_no_transform_r_n
lea ecx, [esp + 0x50]
call fcn.0043b6e0
mov eax, dword [esi + 0x6c]
test eax, eax
lea ecx, [esp + 0x4c]
je 0x502cbd
mov edi, dword [esi + 0x70]
mov ebx, eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x502c64
push str.Content_type:
call fcn.0043b6e0
mov ecx, dword [esi + 0x74]
push ecx
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.0043b3c0
push 0x5f6fa4
lea ecx, [esp + 0x50]
call fcn.0043b6e0
jmp 0x502ccf
mov ebp, dword [esi + 0x6c]
test ebp, ebp
setne dl
movzx ecx, dl
test ecx, ecx
je 0x502a60
mov ecx, 0x5f6d28
jmp 0x502a65
mov eax, dword [esi + 0x84]
test ah, 2
je 0x502c89
push str.Content_type:
call fcn.0043b6e0
push str.application_x_amf
lea ecx, [esp + 0x50]
call fcn.0043b6e0
jmp 0x502ccf
push str.Content_Type:
call fcn.0043b6e0
push str.application_x_www_form_urlencoded
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.0043b6e0
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.0043b3c0
jmp 0x502ccf
push 0x5f6fa4
call fcn.0043b6e0
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x502cdd
mov eax, dword [esp + 0x4c]
jmp 0x502ce5
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push edi
push ebx
push ecx
push eax
push ebp
call dword [0x681aac]
test eax, eax
je 0x5032c4
mov al, byte [esi + 0x1d]
test al, al
jne 0x5032c4
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 [0x681ab0]
test eax, eax
jne 0x502d53
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x93
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0xc
call fcn.005dd330
add esp, 4
test eax, eax
je 0x502d76
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 0x502d78
xor eax, eax
mov ebp, dword [0x5f6448]
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xf9c]
push 0
push 0x407
push ecx
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x503033
cmp eax, 0x190
jb 0x5033aa
add eax, 0xfffffe70
cmp eax, 0x69
ja case.0x502dc4.407
movzx edx, byte [eax + 0x503470]
jmp dword [edx*4 + 0x503438]
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x7f
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x80
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x81
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x82
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x83
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x84
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x85
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x86
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x87
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x88
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x89
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x8a
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x8b
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503315
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0xa1
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503317
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 [0x681ab0]
test eax, eax
jne 0x503063
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x22
push ebx
mov dword [esp + 0x28], 0
call dword [0x681ab4]
test eax, eax
jne 0x5030f2
call dword [0x5f6258]
cmp eax, 0x7a
jne 0x5030f2
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x5030f2
push eax
call fcn.005dd330
mov edi, eax
add esp, 4
test edi, edi
je 0x5030f2
lea edx, [esp + 0x18]
push edx
push edi
push 0x22
push ebx
call dword [0x681ab4]
test eax, eax
je 0x5030e1
push 0xc
call fcn.005dd330
add esp, 4
test eax, eax
je 0x5030d7
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 0x5030f2
mov dword [esp + 0x24], 0
jmp 0x5030f2
push edi
call fcn.005dd350
add esp, 4
jmp 0x5030f2
mov ebp, dword [0x5f6448]
push 0xc
call fcn.005dd330
xor edi, edi
add esp, 4
cmp eax, edi
je 0x50310f
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x503111
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xf9c]
push edi
push 0x404
push eax
call ebp
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x503145
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0xf9c]
push eax
push edi
push 0x408
push edx
call ebp
push 0xc
call fcn.005dd330
add esp, 4
cmp eax, edi
je 0x503164
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 0x503166
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xf9c]
push edi
push 0x406
push ecx
call ebp
mov al, byte [esi + 0x1d]
test al, al
jne 0x5033aa
mov ebx, dword [esp + 0x48]
jmp 0x503190
mov eax, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [0x681ab8]
test eax, eax
je 0x50324f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50324f
mov cl, byte [esi + 0x1d]
test cl, cl
jne 0x50324f
cmp eax, 0x10000
jbe 0x5031d3
mov eax, 0x10000
mov dword [esp + 0x24], eax
push eax
call fcn.005dd330
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 [0x681abc]
test eax, eax
je 0x50324f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50324f
mov al, byte [esi + 0x1d]
test al, al
jne 0x5033aa
push 0xc
call fcn.005dd330
add esp, 4
test eax, eax
je 0x50322c
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 0x50322e
xor edi, edi
mov al, byte [esi + 0x1d]
test al, al
jne 0x50327f
push edi
push 0
push 0x402
push ebx
call ebp
test eax, eax
je 0x50327f
mov al, byte [esi + 0x1d]
test al, al
je 0x503190
mov al, byte [esi + 0x1d]
test al, al
jne 0x5033aa
push 0xc
mov dword [esp + 0x34], 1
call fcn.005dd330
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x5032a9
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x5032ab
test edi, edi
je 0x50329c
mov eax, dword [edi + 4]
test eax, eax
je 0x503293
push eax
call fcn.005dd350
add esp, 4
push edi
call fcn.005dd350
add esp, 4
mov dword [esp + 0x30], 1
jmp 0x5033aa
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
push ecx
mov ecx, dword [eax + 0xf9c]
push 0x405
push ecx
jmp 0x5033a4
call dword [0x5f6258]
push 0x10
mov edi, eax
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503315
mov edx, dword [esp + 0x10]
push edx
push edi
push 0x94
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503317
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503315
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x92
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503317
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xf9c]
push 0
push 0x409
push ecx
jmp 0x5033a4
push 0x10
call fcn.005dd330
add esp, 4
test eax, eax
je 0x503352
mov edx, dword [esi + 0x3c]
push edx
push 0
push 0x95
push 3
mov ecx, eax
call fcn.005025d0
jmp 0x503354
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xf9c]
push 0
push 0x409
push eax
jmp 0x5033a4
push 0x10
call fcn.005dd330
add esp, 4
cmp eax, ebp
je 0x50338e
mov dword [eax], 3
mov dword [eax + 4], 0x96
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
jmp 0x503390
xor eax, eax
push eax
push ebp
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0xf9c]
push 0x409
push edx
call dword [0x5f6448]
mov eax, dword [esp + 0x10]
push eax
call fcn.005dd350
mov eax, dword [esp + 0x18]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x5033c8
push eax
call dword [0x681ac0]
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x5033d7
push eax
call dword [0x681ac0]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x5033e6
push eax
call dword [0x681ac0]
cmp dword [esp + 0x30], edi
jne 0x503423
push 0xc
call fcn.005dd330
add esp, 4
cmp eax, edi
je 0x503407
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x503409
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xf9c]
push edi
push 0x403
push eax
call dword [0x5f6448]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005dd350
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret