Function at 0x417740
Capabilities:
Check http status code
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xc14]
sub esp, 0xc14
push 0xffffffffffffffff
push 0x5cd185
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x613ad0]
xor eax, ebp
mov dword [ebp + 0xc10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc24]
mov ecx, dword [ebp + 0xc28]
mov edx, dword [ebp + 0xc2c]
mov edi, dword [ebp + 0xc30]
mov esi, dword [ebp + 0xc1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], edi
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4177c3
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp + 0xc20]
test ebx, ebx
mov dword [ebp - 4], 0
je 0x4181b1
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x4181b1
cmp ebx, 3
je 0x417bb0
cmp ebx, 4
je 0x417bb0
lea ecx, [ebp - 0xe8]
call fcn.0041ea00
mov byte [ebp - 4], 1
call fcn.0041ebb0
test eax, eax
je 0x4179e3
lea ecx, [ebp - 0x58]
call fcn.00442960
push 0x5da440
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00415da0
lea ecx, [ebp - 0x14]
call fcn.00402080
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0
call fcn.00442ce0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x417878
push 0x5d8f14
push eax
call fcn.005aadaf
add esp, 8
test eax, eax
je 0x417878
sub eax, dword [esi]
sar eax, 1
jns 0x4178a4
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x417958
push 0x5d9168
push eax
call fcn.005aadaf
add esp, 8
test eax, eax
je 0x417958
sub eax, dword [esi]
sar eax, 1
js 0x417958
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.00416310
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004024f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00401f40
lea edx, [ebp - 0x14]
push 0x5da43c
push edx
call fcn.00415f30
add esp, 8
test al, al
je 0x41796c
mov bl, 6
jmp 0x4178f0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041ec50
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push ecx
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00416310
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004024f0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push 0x5da43c
push ecx
call fcn.00415f30
add esp, 8
test al, al
jne 0x4178f0
jmp 0x41796c
lea ecx, [ebp - 0x58]
call fcn.00442dc0
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041ec50
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x58]
call fcn.00442ce0
lea ecx, [ebp - 0x58]
call fcn.00442dc0
push eax
lea ecx, [ebp - 0x88]
call fcn.00442ce0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
call fcn.00442ce0
lea ecx, [ebp - 0x58]
call fcn.00442dc0
push eax
lea ecx, [ebp - 0x9c]
call fcn.00442ce0
push 0
lea ecx, [ebp - 0xe8]
call fcn.0041ed60
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [ebp - 0x14]
add esi, 1
call fcn.00401f40
lea ecx, [ebp - 0x1c]
call fcn.00401f40
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00442b40
jmp 0x417b81
lea ecx, [ebp - 0x2c]
call fcn.00402080
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 7
call fcn.004437f0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + 0x800]
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417a06
lea edx, [ebp + 0xa08]
push edx
push 0
push 0x5da434
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp + 0xa08]
push 0x2e
push ecx
call fcn.005aae0d
add esp, 8
test eax, eax
je 0x417a5f
mov ecx, 0x5da428
mov edx, eax
sub edx, ecx
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x417a50
push 0x14
call fcn.0057def7
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 8
je 0x417a8b
push 0x9011
lea edx, [ebp + 0xa08]
push edx
mov ecx, eax
call fcn.0059cadc
mov edi, eax
jmp 0x417a8d
xor edi, edi
lea ecx, [ebp - 0x14]
call fcn.00402080
push 1
push str.__xml_version_1.0__standalone_yes____n
push 0
push edi
mov byte [ebp - 4], 9
call fcn.00443c00
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x14]
push str._submitto__s__submitto__n
push ecx
call fcn.00403ad0
mov edx, dword [ebp - 0x14]
push 1
push edx
push 0
push edi
call fcn.00443c00
push ebx
lea eax, [ebp - 0x14]
push str._submittype__d__submittype__n
push eax
call fcn.00403ad0
mov ecx, dword [ebp - 0x14]
push 1
push ecx
push 0
push edi
call fcn.00443c00
mov edx, dword [ebp - 0x24]
add esp, 0x48
push 1
push edx
push 0
push edi
call fcn.00443c00
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
add esp, 0x10
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00402080
mov eax, dword [esi]
push eax
lea ecx, [ebp + 0xa08]
push ecx
push 0xe000
mov byte [ebp - 4], 0xa
call fcn.00443770
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push 0x7d1d
push edx
call fcn.0040cbc0
add esp, 0x14
push 0x50040
push 0x7da5
call fcn.00443770
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00415d80
mov ecx, eax
call fcn.0058276d
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.00401f40
lea ecx, [ebp - 0x14]
call fcn.00401f40
lea ecx, [ebp - 0x2c]
call fcn.00401f40
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x417b9c
test edi, edi
je 0x417b9c
cmp dword [edi], 0
je 0x417b9c
mov word [eax], 0
mov dword [edi], 0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.0041eb10
jmp 0x418208
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417bca
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417bf7
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xc
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417c24
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xd
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417c51
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
push ecx
push edx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x40], 0x50
call fcn.00416440
add esp, 8
test eax, eax
je 0x41811e
mov eax, dword [esi]
push 7
push eax
push 0x5da414
xor ebx, ebx
call fcn.005ac8de
add esp, 0xc
test eax, eax
jne 0x417ca0
lea ebx, [eax + 7]
jmp 0x417cc2
mov eax, dword [esi]
push 8
push eax
push 0x5da400
call fcn.005ac8de
add esp, 0xc
test eax, eax
jne 0x417cc2
mov ebx, 8
mov dword [ebp - 0x40], 0x1bb
mov eax, dword [esi]
lea eax, [eax + ebx*2]
push 0x2f
push eax
call fcn.005ac2a3
mov edi, eax
add esp, 8
test edi, edi
je 0x4180e7
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
sar ecx, 1
sub ecx, ebx
push ecx
push ebx
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.004068a0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.004024f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00401f40
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
sub edi, ecx
sar edi, 1
sub eax, edi
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00403530
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call fcn.004024f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00401f40
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004024f0
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
mov edi, edx
jle 0x417d9f
push 0x3a
push edi
call fcn.005ac2a3
add esp, 8
test eax, eax
je 0x417d9f
sub eax, edi
sar eax, 1
mov esi, eax
js 0x417d9f
lea eax, [edi + esi*2 + 2]
push eax
call fcn.005ab5f5
add esp, 4
push esi
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
call fcn.004035b0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.004024f0
lea ecx, [ebp - 0x18]
call fcn.00401f40
mov edi, dword [ebp - 0x14]
xor eax, eax
cmp ebx, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x84400100
jne 0x417dba
mov dword [ebp - 0x18], 0x84c00100
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x1c], 0
xor esi, esi
call fcn.004045a0
cmp dword [ebp + 0xc20], 4
mov byte [ebp - 4], 0x13
jne 0x417e22
mov edx, dword [ebp - 0x28]
cmp dword [edx - 0xc], 0
mov esi, 1
je 0x417e08
push 0x5da424
lea ecx, [ebp - 0x2c]
call fcn.00407200
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404540
push 0x5da43c
lea ecx, [ebp - 0x44]
call fcn.004021d0
push 0x5da43c
lea ecx, [ebp - 0x28]
call fcn.004021d0
push 0
push 0
push 0
push 0
push 1
push str.Publisher
lea ecx, [ebp - 0x58]
call fcn.005917af
mov ecx, dword [ebp - 0x40]
push 0
push 0
push ecx
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x14
call fcn.0059211b
mov edx, dword [ebp - 0x18]
push edx
push 0
push 0
push 1
mov ecx, eax
mov eax, dword [ebp - 0x2c]
push 0
push eax
push esi
mov dword [ebp - 0x3c], ecx
call fcn.005921d2
test eax, eax
mov dword [ebp - 0x24], eax
je 0x417f87
mov eax, dword [ebp - 0x28]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e80
mov ecx, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
sub eax, edx
sar eax, 1
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0057df22
mov esi, eax
mov eax, dword [ebp - 0x28]
add esp, 4
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ec0
push 0
push 0
push ebx
sub eax, edx
mov edx, dword [ebp - 0x28]
push esi
sar eax, 1
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + edi], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax - 0xc]
push edi
push esi
push ecx
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.00443350
add esp, 0x14
cmp eax, 0xc8
je 0x417f0c
mov dword [ebp - 0x1c], 1
push esi
call fcn.0057df27
mov ebx, dword [ebp - 0x24]
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.005911fd
cmp dword [ebp - 0x18], 0xc8
jne 0x417f8a
cmp dword [ebp - 0x38], 0
je 0x417f91
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x417f91
mov eax, dword [edi]
test eax, eax
je 0x417f91
push eax
call fcn.0057df22
mov edx, dword [ebx]
mov edx, dword [edx + 0x34]
mov esi, eax
mov eax, dword [edi]
add esp, 4
sub eax, 1
push eax
push esi
mov ecx, ebx
call edx
mov edx, dword [ebp - 0x38]
mov byte [eax + esi], 0
mov ecx, dword [edi]
push ecx
push edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov edi, eax
call fcn.0057df27
mov eax, dword [ebp - 0x38]
add esp, 4
mov word [eax + edi*2], 0
jmp 0x417f91
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x417fa9
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x417fc4
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 0x58]
call fcn.00591d85
cmp dword [ebp - 0x1c], 0
je 0x41800b
push 0x7e53
lea ecx, [ebp - 0x30]
call fcn.00403aa0
push 0x7da5
call fcn.00443770
add esp, 4
mov esi, eax
call fcn.00415d80
mov ecx, dword [ebp - 0x30]
push 0x50010
push esi
push ecx
mov ecx, eax
call fcn.0058276d
mov esi, 1
jmp 0x41800d
xor esi, esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x13
call fcn.00591e0a
lea ecx, [ebp - 0x44]
call fcn.00401f40
mov dword [ebp - 4], 0xe
jmp 0x418123
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x30]
push 0x7d4f
push edx
call fcn.0040cbc0
add esp, 0xc
push 0x50010
push 0x7da5
call fcn.00443770
add esp, 4
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.00415d80
mov ecx, eax
call fcn.0058276d
mov esi, 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418146
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41818c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x418208
push 0x7e56
call fcn.0057f7a1
test eax, eax
je 0x4181cd
push 0x7e56
push eax
lea ecx, [ebp - 0x30]
call fcn.00403630
call fcn.0058804f
test eax, eax
je 0x4181e3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
jmp 0x4181e5
xor esi, esi
push 0x50010
push 0x7da5
call fcn.00443770
mov ecx, dword [ebp - 0x30]
add esp, 4
push eax
push ecx
mov ecx, esi
call fcn.0058276d
mov esi, 1
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41822e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc10]
xor ecx, ebp
call fcn.005aac48
add ebp, 0xc14
mov esp, ebp
pop ebp
ret